UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 10:45:47";
UPDATE programsettings SET companyname = 'GT4', address = 'القاهرة - المقطم - شارع 9 ', specializtion = 'برمجيات - مواقع انترنت - تطبيقات موبايل', phone = '0111007088', faxnumber = '', email = 'mousa_maged@hotmail.com', website = '', logo = '3f52022081b9a1a89c6f3246463c2d62.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` = 'D', taxcard = '123456789123', commercialregistration = '1234', costcenter = '1', clinic = '1', workshop = '1', transport = '1', manufacturing = '1', masterCopy = '0' , dailyentrydate = '2020-04-18' ,updatefiledate = '2024-02-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='L.E',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='1',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='0',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='9aad922c8dc25742295df2779fde48ab62230719d569b9aa71bf6d5e0e08471c7dbda60d508155af60894a0ba3bbd86ffbee699027a409bcd9ca11e28a846cc5',associatedtags='0',commentClientChasis='0',dollarExType='0',saudielectronicinvoice='0',saudielectronicinvoclient='0',productDiscount='0'
                ,reviewRecords='',reviewRecordsLastDate='',showepayrestaurant='0',showSellAllPriceInStoreDetail='0' WHERE programsettingsid = '1';
update user set blockedByLimits = 0;
INSERT INTO relusergroupproperties (usergroupid, propertyid, propertyvalue, theorder) VALUES (1, 511, 1,0),(1, 512, 0,0),(1, 513, 0,0),(1, 514, 0,0),(1, 515, 0,0),(1, 516, 0,0),(1, 517, 0,0),(1, 518, 0,0),(1, 519, 0,0),(1, 520, 0,0),(1, 521, 0,0),(1, 522, 1,0),(1, 523, 0,0),(1, 524, 0,0),(1, 525, 0,0),(1, 526, 0,0),(1, 527, 1,0),(1, 528, 1,0),(1, 529, 1,0),(1, 530, 0,0),(1, 531, 0,0),(1, 532, 0,0),(1, 533, 0,0),(1, 534, 1,0),(1, 535, 1,0),(1, 536, 1,0),(1, 537, 1,0),(1, 538, 1,0),(1, 539, 1,0),(1, 540, 0,0),(1, 541, 0,0),(1, 542, 0,0),(1, 543, 1,0),(1, 544, 0,0),(1, 545, 0,0),(1, 546, 0,0),(1, 547, 0,0),(1, 548, 0,0),(1, 549, 1,0),(1, 550, 0,0),(1, 551, 0,0),(1, 552, 0,0),(1, 553, 0,0),(1, 554, 0,0),(1, 555, 0,0),(1, 556, 0,0),(1, 557, 0,0),(1, 558, 0,0),(1, 559, 0,0),(1, 560, 0,0),(1, 561, 0,0),(1, 562, 0,0),(1, 563, 0,0),(1, 564, 0,0),(1, 565, 0,0),(1, 566, 0,0),(1, 567, 0,0),(1, 568, 0,0),(1, 569, 0,0),(1, 570, 1,0),(1, 571, 1,0),(1, 572, 1,0),(1, 573, 1,0),(1, 574, 1,0),(1, 575, 1,0),(1, 576, 1,0),(1, 577, 1,0),(1, 578, 1,0),(1, 579, 0,0),(1, 580, 0,0),(1, 581, 0,0),(1, 582, 0,0),(1, 583, 0,0),(1, 584, 0,0),(1, 585, 1,0),(1, 586, 1,0),(1, 587, 0,0),(1, 588, 1,0),(1, 589, 1,0),(1, 590, 1,0),(1, 591, 1,0),(1, 592, 1,0),(1, 593, 1,0),(1, 594, 1,0),(1, 595, 0,0),(1, 596, 0,0),(1, 597, 0,0),(1, 598, 0,0),(1, 599, 0,0),(1, 600, 0,0),(1, 601, 0,0),(1, 602, 0,0),(1, 603, 1,0),(1, 604, 1,0),(1, 605, 1,0),(1, 606, 1,0),(1, 607, 1,0),(1, 608, 1,0),(1, 609, 1,0),(1, 610, 1,0),(1, 611, 0,0),(1, 612, 1,0),(1, 613, 1,0),(1, 614, 1,0),(1, 615, 1,0),(1, 616, 0,0),(1, 617, 0,0),(1, 618, 0,0),(1, 619, 1,0),(1, 620, 1,0),(1, 621, 1,0),(1, 622, 1,0),(1, 623, 1,0),(1, 624, 1,0),(1, 625, 0,0),(1, 626, 0,0),(1, 627, 1,0),(1, 628, 1,0),(1, 629, 1,0),(1, 630, 0,0),(1, 631, 1,0),(1, 632, 0,0),(1, 633, 0,0),(1, 634, 0,0),(1, 635, 0,0),(1, 636, 1,0),(1, 637, 1,0),(1, 638, 1,0),(1, 639, 1,0),(1, 640, 0,0),(1, 641, 1,0),(1, 642, 1,0),(1, 643, 1,0),(1, 644, 1,0),(1, 645, 1,0),(1, 646, 1,0),(1, 647, 1,0),(1, 648, 1,0),(1, 649, 1,0),(1, 650, 1,0),(1, 651, 1,0),(1, 652, 1,0),(1, 653, 1,0),(1, 654, 1,0),(1, 655, 1,0),(1, 656, 1,0),(1, 657, 1,0),(1, 658, 1,0),(1, 659, 1,0),(1, 660, 1,0),(1, 661, 1,0),(1, 662, 1,0),(1, 663, 1,0),(1, 664, 1,0),(1, 665, 1,0),(1, 666, 1,0),(1, 667, 1,0),(1, 668, 1,0),(1, 669, 1,0),(1, 670, 1,0),(1, 671, 1,0),(1, 672, 1,0),(1, 673, 1,0),(1, 674, 1,0),(1, 675, 1,0),(1, 676, 1,0),(1, 677, 1,0),(1, 678, 1,0),(1, 679, 1,0),(1, 680, 1,0),(1, 681, 1,0),(1, 682, 1,0),(1, 683, 1,0),(1, 684, 1,0),(1, 685, 1,0),(1, 686, 1,0),(1, 687, 1,0),(1, 688, 1,0),(1, 689, 1,0),(1, 690, 1,0),(1, 691, 1,0),(1, 692, 1,0),(1, 693, 1,0),(1, 694, 1,0),(1, 695, 1,0),(1, 696, 1,0),(1, 697, 1,0),(1, 698, 1,0),(1, 699, 1,0),(1, 700, 1,0),(1, 701, 1,0),(1, 702, 1,0),(1, 703, 1,0),(1, 704, 1,0),(1, 705, 1,0),(1, 706, 1,0),(1, 707, 1,0),(1, 708, 1,0),(1, 709, 1,0),(1, 710, 1,0),(1, 711, 1,0),(1, 712, 1,0),(1, 713, 1,0),(1, 714, 1,0),(1, 715, 1,0),(1, 716, 1,0),(1, 717, 1,0),(1, 718, 1,0),(1, 719, 1,0),(1, 720, 1,0),(1, 721, 1,0),(1, 722, 1,0),(1, 723, 1,0),(1, 724, 1,0),(1, 725, 1,0),(1, 726, 1,0),(1, 727, 1,0),(1, 728, 1,0),(1, 729, 1,0),(1, 730, 1,0),(1, 731, 1,0),(1, 732, 1,0),(1, 733, 1,0),(1, 734, 1,0),(1, 735, 1,0),(1, 736, 1,0),(1, 737, 1,0),(1, 738, 1,0),(1, 739, 1,0),(1, 740, 1,0),(1, 741, 1,0),(1, 742, 1,0),(1, 743, 1,0),(1, 744, 1,0),(1, 745, 1,0),(1, 746, 1,0),(1, 747, 1,0),(1, 748, 1,0),(1, 749, 1,0),(1, 750, 1,0),(1, 751, 1,0),(1, 752, 1,0),(1, 753, 1,0),(1, 754, 1,0),(1, 755, 1,0),(1, 756, 1,0),(1, 757, 1,0),(1, 758, 1,0),(1, 759, 1,0),(1, 760, 1,0),(1, 761, 1,0),(1, 762, 1,0),(1, 763, 1,0),(1, 764, 1,0),(1, 765, 1,0),(1, 766, 1,0),(1, 767, 1,0),(1, 768, 1,0),(1, 769, 1,0),(1, 770, 1,0),(1, 771, 1,0),(1, 772, 1,0),(1, 773, 1,0),(1, 774, 1,0),(1, 775, 1,0),(1, 776, 1,0),(1, 777, 1,0),(1, 778, 1,0),(1, 779, 1,0),(1, 780, 1,0),(1, 781, 1,0),(1, 782, 1,0),(1, 783, 1,0),(1, 784, 1,0),(1, 785, 1,0),(1, 786, 1,0),(1, 787, 1,0),(1, 788, 1,0),(1, 789, 1,0),(1, 790, 1,0),(1, 791, 1,0),(2, 511, 1,0),(2, 512, 0,0),(2, 513, 0,0),(2, 514, 0,0),(2, 515, 0,0),(2, 516, 0,0),(2, 517, 0,0),(2, 518, 0,0),(2, 519, 0,0),(2, 520, 0,0),(2, 521, 0,0),(2, 522, 1,0),(2, 523, 0,0),(2, 524, 0,0),(2, 525, 0,0),(2, 526, 0,0),(2, 527, 1,0),(2, 528, 1,0),(2, 529, 1,0),(2, 530, 0,0),(2, 531, 0,0),(2, 532, 0,0),(2, 533, 0,0),(2, 534, 1,0),(2, 535, 1,0),(2, 536, 1,0),(2, 537, 1,0),(2, 538, 1,0),(2, 539, 1,0),(2, 540, 0,0),(2, 541, 0,0),(2, 542, 0,0),(2, 543, 1,0),(2, 544, 0,0),(2, 545, 0,0),(2, 546, 0,0),(2, 547, 0,0),(2, 548, 0,0),(2, 549, 1,0),(2, 550, 0,0),(2, 551, 0,0),(2, 552, 0,0),(2, 553, 0,0),(2, 554, 0,0),(2, 555, 0,0),(2, 556, 0,0),(2, 557, 0,0),(2, 558, 0,0),(2, 559, 0,0),(2, 560, 0,0),(2, 561, 0,0),(2, 562, 0,0),(2, 563, 0,0),(2, 564, 0,0),(2, 565, 0,0),(2, 566, 0,0),(2, 567, 0,0),(2, 568, 0,0),(2, 569, 0,0),(2, 570, 1,0),(2, 571, 1,0),(2, 572, 1,0),(2, 573, 1,0),(2, 574, 1,0),(2, 575, 1,0),(2, 576, 1,0),(2, 577, 1,0),(2, 578, 1,0),(2, 579, 0,0),(2, 580, 0,0),(2, 581, 0,0),(2, 582, 0,0),(2, 583, 0,0),(2, 584, 0,0),(2, 585, 1,0),(2, 586, 1,0),(2, 587, 0,0),(2, 588, 1,0),(2, 589, 1,0),(2, 590, 1,0),(2, 591, 1,0),(2, 592, 1,0),(2, 593, 1,0),(2, 594, 1,0),(2, 595, 0,0),(2, 596, 0,0),(2, 597, 0,0),(2, 598, 0,0),(2, 599, 0,0),(2, 600, 0,0),(2, 601, 0,0),(2, 602, 0,0),(2, 603, 1,0),(2, 604, 1,0),(2, 605, 1,0),(2, 606, 1,0),(2, 607, 1,0),(2, 608, 1,0),(2, 609, 1,0),(2, 610, 1,0),(2, 611, 0,0),(2, 612, 1,0),(2, 613, 1,0),(2, 614, 1,0),(2, 615, 1,0),(2, 616, 0,0),(2, 617, 0,0),(2, 618, 0,0),(2, 619, 1,0),(2, 620, 1,0),(2, 621, 1,0),(2, 622, 1,0),(2, 623, 1,0),(2, 624, 1,0),(2, 625, 0,0),(2, 626, 0,0),(2, 627, 1,0),(2, 628, 1,0),(2, 629, 1,0),(2, 630, 0,0),(2, 631, 1,0),(2, 632, 0,0),(2, 633, 0,0),(2, 634, 0,0),(2, 635, 0,0),(2, 636, 1,0),(2, 637, 1,0),(2, 638, 1,0),(2, 639, 1,0),(2, 640, 0,0),(2, 641, 1,0),(2, 642, 1,0),(2, 643, 1,0),(2, 644, 1,0),(2, 645, 1,0),(2, 646, 1,0),(2, 647, 1,0),(2, 648, 1,0),(2, 649, 1,0),(2, 650, 1,0),(2, 651, 1,0),(2, 652, 1,0),(2, 653, 1,0),(2, 654, 1,0),(2, 655, 1,0),(2, 656, 1,0),(2, 657, 1,0),(2, 658, 1,0),(2, 659, 1,0),(2, 660, 1,0),(2, 661, 1,0),(2, 662, 1,0),(2, 663, 1,0),(2, 664, 1,0),(2, 665, 1,0),(2, 666, 1,0),(2, 667, 1,0),(2, 668, 1,0),(2, 669, 1,0),(2, 670, 1,0),(2, 671, 1,0),(2, 672, 1,0),(2, 673, 1,0),(2, 674, 1,0),(2, 675, 1,0),(2, 676, 1,0),(2, 677, 1,0),(2, 678, 1,0),(2, 679, 1,0),(2, 680, 1,0),(2, 681, 1,0),(2, 682, 1,0),(2, 683, 1,0),(2, 684, 1,0),(2, 685, 1,0),(2, 686, 1,0),(2, 687, 1,0),(2, 688, 1,0),(2, 689, 1,0),(2, 690, 1,0),(2, 691, 1,0),(2, 692, 1,0),(2, 693, 1,0),(2, 694, 1,0),(2, 695, 1,0),(2, 696, 1,0),(2, 697, 1,0),(2, 698, 1,0),(2, 699, 1,0),(2, 700, 1,0),(2, 701, 1,0),(2, 702, 1,0),(2, 703, 1,0),(2, 704, 1,0),(2, 705, 1,0),(2, 706, 1,0),(2, 707, 1,0),(2, 708, 1,0),(2, 709, 1,0),(2, 710, 1,0),(2, 711, 1,0),(2, 712, 1,0),(2, 713, 1,0),(2, 714, 1,0),(2, 715, 1,0),(2, 716, 1,0),(2, 717, 1,0),(2, 718, 1,0),(2, 719, 1,0),(2, 720, 1,0),(2, 721, 1,0),(2, 722, 1,0),(2, 723, 1,0),(2, 724, 1,0),(2, 725, 1,0),(2, 726, 1,0),(2, 727, 1,0),(2, 728, 1,0),(2, 729, 1,0),(2, 730, 1,0),(2, 731, 1,0),(2, 732, 1,0),(2, 733, 1,0),(2, 734, 1,0),(2, 735, 1,0),(2, 736, 1,0),(2, 737, 1,0),(2, 738, 1,0),(2, 739, 1,0),(2, 740, 1,0),(2, 741, 1,0),(2, 742, 1,0),(2, 743, 1,0),(2, 744, 1,0),(2, 745, 1,0),(2, 746, 1,0),(2, 747, 1,0),(2, 748, 1,0),(2, 749, 1,0),(2, 750, 1,0),(2, 751, 1,0),(2, 752, 1,0),(2, 753, 1,0),(2, 754, 1,0),(2, 755, 1,0),(2, 756, 1,0),(2, 757, 1,0),(2, 758, 1,0),(2, 759, 1,0),(2, 760, 1,0),(2, 761, 1,0),(2, 762, 1,0),(2, 763, 1,0),(2, 764, 1,0),(2, 765, 1,0),(2, 766, 1,0),(2, 767, 1,0),(2, 768, 1,0),(2, 769, 1,0),(2, 770, 1,0),(2, 771, 1,0),(2, 772, 1,0),(2, 773, 1,0),(2, 774, 1,0),(2, 775, 1,0),(2, 776, 1,0),(2, 777, 1,0),(2, 778, 1,0),(2, 779, 1,0),(2, 780, 1,0),(2, 781, 1,0),(2, 782, 1,0),(2, 783, 1,0),(2, 784, 1,0),(2, 785, 1,0),(2, 786, 1,0),(2, 787, 1,0),(2, 788, 1,0),(2, 789, 1,0),(2, 790, 1,0),(2, 791, 1,0),(3, 511, 1,0),(3, 512, 0,0),(3, 513, 0,0),(3, 514, 0,0),(3, 515, 0,0),(3, 516, 0,0),(3, 517, 0,0),(3, 518, 0,0),(3, 519, 0,0),(3, 520, 0,0),(3, 521, 0,0),(3, 522, 1,0),(3, 523, 0,0),(3, 524, 0,0),(3, 525, 0,0),(3, 526, 0,0),(3, 527, 1,0),(3, 528, 1,0),(3, 529, 1,0),(3, 530, 0,0),(3, 531, 0,0),(3, 532, 0,0),(3, 533, 0,0),(3, 534, 1,0),(3, 535, 1,0),(3, 536, 1,0),(3, 537, 1,0),(3, 538, 1,0),(3, 539, 1,0),(3, 540, 0,0),(3, 541, 0,0),(3, 542, 0,0),(3, 543, 1,0),(3, 544, 0,0),(3, 545, 0,0),(3, 546, 0,0),(3, 547, 0,0),(3, 548, 0,0),(3, 549, 1,0),(3, 550, 0,0),(3, 551, 0,0),(3, 552, 0,0),(3, 553, 0,0),(3, 554, 0,0),(3, 555, 0,0),(3, 556, 0,0),(3, 557, 0,0),(3, 558, 0,0),(3, 559, 0,0),(3, 560, 0,0),(3, 561, 0,0),(3, 562, 0,0),(3, 563, 0,0),(3, 564, 0,0),(3, 565, 0,0),(3, 566, 0,0),(3, 567, 0,0),(3, 568, 0,0),(3, 569, 0,0),(3, 570, 1,0),(3, 571, 1,0),(3, 572, 1,0),(3, 573, 1,0),(3, 574, 1,0),(3, 575, 1,0),(3, 576, 1,0),(3, 577, 1,0),(3, 578, 1,0),(3, 579, 0,0),(3, 580, 0,0),(3, 581, 0,0),(3, 582, 0,0),(3, 583, 0,0),(3, 584, 0,0),(3, 585, 1,0),(3, 586, 1,0),(3, 587, 0,0),(3, 588, 1,0),(3, 589, 1,0),(3, 590, 1,0),(3, 591, 1,0),(3, 592, 1,0),(3, 593, 1,0),(3, 594, 1,0),(3, 595, 0,0),(3, 596, 0,0),(3, 597, 0,0),(3, 598, 0,0),(3, 599, 0,0),(3, 600, 0,0),(3, 601, 0,0),(3, 602, 0,0),(3, 603, 1,0),(3, 604, 1,0),(3, 605, 1,0),(3, 606, 1,0),(3, 607, 1,0),(3, 608, 1,0),(3, 609, 1,0),(3, 610, 1,0),(3, 611, 0,0),(3, 612, 1,0),(3, 613, 1,0),(3, 614, 1,0),(3, 615, 1,0),(3, 616, 0,0),(3, 617, 0,0),(3, 618, 0,0),(3, 619, 1,0),(3, 620, 1,0),(3, 621, 1,0),(3, 622, 1,0),(3, 623, 1,0),(3, 624, 1,0),(3, 625, 0,0),(3, 626, 0,0),(3, 627, 1,0),(3, 628, 1,0),(3, 629, 1,0),(3, 630, 0,0),(3, 631, 1,0),(3, 632, 0,0),(3, 633, 0,0),(3, 634, 0,0),(3, 635, 0,0),(3, 636, 1,0),(3, 637, 1,0),(3, 638, 1,0),(3, 639, 1,0),(3, 640, 0,0),(3, 641, 1,0),(3, 642, 1,0),(3, 643, 1,0),(3, 644, 1,0),(3, 645, 1,0),(3, 646, 1,0),(3, 647, 1,0),(3, 648, 1,0),(3, 649, 1,0),(3, 650, 1,0),(3, 651, 1,0),(3, 652, 1,0),(3, 653, 1,0),(3, 654, 1,0),(3, 655, 1,0),(3, 656, 1,0),(3, 657, 1,0),(3, 658, 1,0),(3, 659, 1,0),(3, 660, 1,0),(3, 661, 1,0),(3, 662, 1,0),(3, 663, 1,0),(3, 664, 1,0),(3, 665, 1,0),(3, 666, 1,0),(3, 667, 1,0),(3, 668, 1,0),(3, 669, 1,0),(3, 670, 1,0),(3, 671, 1,0),(3, 672, 1,0),(3, 673, 1,0),(3, 674, 1,0),(3, 675, 1,0),(3, 676, 1,0),(3, 677, 1,0),(3, 678, 1,0),(3, 679, 1,0),(3, 680, 1,0),(3, 681, 1,0),(3, 682, 1,0),(3, 683, 1,0),(3, 684, 1,0),(3, 685, 1,0),(3, 686, 1,0),(3, 687, 1,0),(3, 688, 1,0),(3, 689, 1,0),(3, 690, 1,0),(3, 691, 1,0),(3, 692, 1,0),(3, 693, 1,0),(3, 694, 1,0),(3, 695, 1,0),(3, 696, 1,0),(3, 697, 1,0),(3, 698, 1,0),(3, 699, 1,0),(3, 700, 1,0),(3, 701, 1,0),(3, 702, 1,0),(3, 703, 1,0),(3, 704, 1,0),(3, 705, 1,0),(3, 706, 1,0),(3, 707, 1,0),(3, 708, 1,0),(3, 709, 1,0),(3, 710, 1,0),(3, 711, 1,0),(3, 712, 1,0),(3, 713, 1,0),(3, 714, 1,0),(3, 715, 1,0),(3, 716, 1,0),(3, 717, 1,0),(3, 718, 1,0),(3, 719, 1,0),(3, 720, 1,0),(3, 721, 1,0),(3, 722, 1,0),(3, 723, 1,0),(3, 724, 1,0),(3, 725, 1,0),(3, 726, 1,0),(3, 727, 1,0),(3, 728, 1,0),(3, 729, 1,0),(3, 730, 1,0),(3, 731, 1,0),(3, 732, 1,0),(3, 733, 1,0),(3, 734, 1,0),(3, 735, 1,0),(3, 736, 1,0),(3, 737, 1,0),(3, 738, 1,0),(3, 739, 1,0),(3, 740, 1,0),(3, 741, 1,0),(3, 742, 1,0),(3, 743, 1,0),(3, 744, 1,0),(3, 745, 1,0),(3, 746, 1,0),(3, 747, 1,0),(3, 748, 1,0),(3, 749, 1,0),(3, 750, 1,0),(3, 751, 1,0),(3, 752, 1,0),(3, 753, 1,0),(3, 754, 1,0),(3, 755, 1,0),(3, 756, 1,0),(3, 757, 1,0),(3, 758, 1,0),(3, 759, 1,0),(3, 760, 1,0),(3, 761, 1,0),(3, 762, 1,0),(3, 763, 1,0),(3, 764, 1,0),(3, 765, 1,0),(3, 766, 1,0),(3, 767, 1,0),(3, 768, 1,0),(3, 769, 1,0),(3, 770, 1,0),(3, 771, 1,0),(3, 772, 1,0),(3, 773, 1,0),(3, 774, 1,0),(3, 775, 1,0),(3, 776, 1,0),(3, 777, 1,0),(3, 778, 1,0),(3, 779, 1,0),(3, 780, 1,0),(3, 781, 1,0),(3, 782, 1,0),(3, 783, 1,0),(3, 784, 1,0),(3, 785, 1,0),(3, 786, 1,0),(3, 787, 1,0),(3, 788, 1,0),(3, 789, 1,0),(3, 790, 1,0),(3, 791, 1,0),(4, 511, 1,0),(4, 512, 0,0),(4, 513, 0,0),(4, 514, 0,0),(4, 515, 0,0),(4, 516, 0,0),(4, 517, 0,0),(4, 518, 0,0),(4, 519, 0,0),(4, 520, 0,0),(4, 521, 0,0),(4, 522, 1,0),(4, 523, 0,0),(4, 524, 0,0),(4, 525, 0,0),(4, 526, 0,0),(4, 527, 1,0),(4, 528, 1,0),(4, 529, 1,0),(4, 530, 0,0),(4, 531, 0,0),(4, 532, 0,0),(4, 533, 0,0),(4, 534, 1,0),(4, 535, 1,0),(4, 536, 1,0),(4, 537, 1,0),(4, 538, 1,0),(4, 539, 1,0),(4, 540, 0,0),(4, 541, 0,0),(4, 542, 0,0),(4, 543, 1,0),(4, 544, 0,0),(4, 545, 0,0),(4, 546, 0,0),(4, 547, 0,0),(4, 548, 0,0),(4, 549, 1,0),(4, 550, 0,0),(4, 551, 0,0),(4, 552, 0,0),(4, 553, 0,0),(4, 554, 0,0),(4, 555, 0,0),(4, 556, 0,0),(4, 557, 0,0),(4, 558, 0,0),(4, 559, 0,0),(4, 560, 0,0),(4, 561, 0,0),(4, 562, 0,0),(4, 563, 0,0),(4, 564, 0,0),(4, 565, 0,0),(4, 566, 0,0),(4, 567, 0,0),(4, 568, 0,0),(4, 569, 0,0),(4, 570, 1,0),(4, 571, 1,0),(4, 572, 1,0),(4, 573, 1,0),(4, 574, 1,0),(4, 575, 1,0),(4, 576, 1,0),(4, 577, 1,0),(4, 578, 1,0),(4, 579, 0,0),(4, 580, 0,0),(4, 581, 0,0),(4, 582, 0,0),(4, 583, 0,0),(4, 584, 0,0),(4, 585, 1,0),(4, 586, 1,0),(4, 587, 0,0),(4, 588, 1,0),(4, 589, 1,0),(4, 590, 1,0),(4, 591, 1,0),(4, 592, 1,0),(4, 593, 1,0),(4, 594, 1,0),(4, 595, 0,0),(4, 596, 0,0),(4, 597, 0,0),(4, 598, 0,0),(4, 599, 0,0),(4, 600, 0,0),(4, 601, 0,0),(4, 602, 0,0),(4, 603, 1,0),(4, 604, 1,0),(4, 605, 1,0),(4, 606, 1,0),(4, 607, 1,0),(4, 608, 1,0),(4, 609, 1,0),(4, 610, 1,0),(4, 611, 0,0),(4, 612, 1,0),(4, 613, 1,0),(4, 614, 1,0),(4, 615, 1,0),(4, 616, 0,0),(4, 617, 0,0),(4, 618, 0,0),(4, 619, 1,0),(4, 620, 1,0),(4, 621, 1,0),(4, 622, 1,0),(4, 623, 1,0),(4, 624, 1,0),(4, 625, 0,0),(4, 626, 0,0),(4, 627, 1,0),(4, 628, 1,0),(4, 629, 1,0),(4, 630, 0,0),(4, 631, 1,0),(4, 632, 0,0),(4, 633, 0,0),(4, 634, 0,0),(4, 635, 0,0),(4, 636, 1,0),(4, 637, 1,0),(4, 638, 1,0),(4, 639, 1,0),(4, 640, 0,0),(4, 641, 1,0),(4, 642, 1,0),(4, 643, 1,0),(4, 644, 1,0),(4, 645, 1,0),(4, 646, 1,0),(4, 647, 1,0),(4, 648, 1,0),(4, 649, 1,0),(4, 650, 1,0),(4, 651, 1,0),(4, 652, 1,0),(4, 653, 1,0),(4, 654, 1,0),(4, 655, 1,0),(4, 656, 1,0),(4, 657, 1,0),(4, 658, 1,0),(4, 659, 1,0),(4, 660, 1,0),(4, 661, 1,0),(4, 662, 1,0),(4, 663, 1,0),(4, 664, 1,0),(4, 665, 1,0),(4, 666, 1,0),(4, 667, 1,0),(4, 668, 1,0),(4, 669, 1,0),(4, 670, 1,0),(4, 671, 1,0),(4, 672, 1,0),(4, 673, 1,0),(4, 674, 1,0),(4, 675, 1,0),(4, 676, 1,0),(4, 677, 1,0),(4, 678, 1,0),(4, 679, 1,0),(4, 680, 1,0),(4, 681, 1,0),(4, 682, 1,0),(4, 683, 1,0),(4, 684, 1,0),(4, 685, 1,0),(4, 686, 1,0),(4, 687, 1,0),(4, 688, 1,0),(4, 689, 1,0),(4, 690, 1,0),(4, 691, 1,0),(4, 692, 1,0),(4, 693, 1,0),(4, 694, 1,0),(4, 695, 1,0),(4, 696, 1,0),(4, 697, 1,0),(4, 698, 1,0),(4, 699, 1,0),(4, 700, 1,0),(4, 701, 1,0),(4, 702, 1,0),(4, 703, 1,0),(4, 704, 1,0),(4, 705, 1,0),(4, 706, 1,0),(4, 707, 1,0),(4, 708, 1,0),(4, 709, 1,0),(4, 710, 1,0),(4, 711, 1,0),(4, 712, 1,0),(4, 713, 1,0),(4, 714, 1,0),(4, 715, 1,0),(4, 716, 1,0),(4, 717, 1,0),(4, 718, 1,0),(4, 719, 1,0),(4, 720, 1,0),(4, 721, 1,0),(4, 722, 1,0),(4, 723, 1,0),(4, 724, 1,0),(4, 725, 1,0),(4, 726, 1,0),(4, 727, 1,0),(4, 728, 1,0),(4, 729, 1,0),(4, 730, 1,0),(4, 731, 1,0),(4, 732, 1,0),(4, 733, 1,0),(4, 734, 1,0),(4, 735, 1,0),(4, 736, 1,0),(4, 737, 1,0),(4, 738, 1,0),(4, 739, 1,0),(4, 740, 1,0),(4, 741, 1,0),(4, 742, 1,0),(4, 743, 1,0),(4, 744, 1,0),(4, 745, 1,0),(4, 746, 1,0),(4, 747, 1,0),(4, 748, 1,0),(4, 749, 1,0),(4, 750, 1,0),(4, 751, 1,0),(4, 752, 1,0),(4, 753, 1,0),(4, 754, 1,0),(4, 755, 1,0),(4, 756, 1,0),(4, 757, 1,0),(4, 758, 1,0),(4, 759, 1,0),(4, 760, 1,0),(4, 761, 1,0),(4, 762, 1,0),(4, 763, 1,0),(4, 764, 1,0),(4, 765, 1,0),(4, 766, 1,0),(4, 767, 1,0),(4, 768, 1,0),(4, 769, 1,0),(4, 770, 1,0),(4, 771, 1,0),(4, 772, 1,0),(4, 773, 1,0),(4, 774, 1,0),(4, 775, 1,0),(4, 776, 1,0),(4, 777, 1,0),(4, 778, 1,0),(4, 779, 1,0),(4, 780, 1,0),(4, 781, 1,0),(4, 782, 1,0),(4, 783, 1,0),(4, 784, 1,0),(4, 785, 1,0),(4, 786, 1,0),(4, 787, 1,0),(4, 788, 1,0),(4, 789, 1,0),(4, 790, 1,0),(4, 791, 1,0); -- id=2256
INSERT IGNORE INTO relusergroupproperties (usergroupid, propertyid, propertyvalue, theorder)
                SELECT -1,propertyid , 0,0
                from properties; -- id=3380
INSERT IGNORE INTO usergroupadmin (propertyid, isallowed)
                SELECT propertyid , propertydefault
                from properties; -- id=1
UPDATE usergroupadmin
                INNER JOIN relusergroupproperties ON (usergroupadmin.propertyid = relusergroupproperties.propertyid and relusergroupproperties.usergroupid = 1)
                SET usergroupadmin.isallowed = relusergroupproperties.propertyvalue;
INSERT INTO user (username, password, usergroupid, employeename, currentdate, conditions, saveid,userstoreid ,awardrate,searchinonesave, branchId,question, answer,blockedByLimits,directSaveBills,userstoreidDef,empid,obygyDoctorId,lang,viewclients,viewbills,storeSupervisor,storeSupervisorStores,projectids,bankids,saveids,searchinonestorebalance,storeids,webApiId,closeSavid,charityids,laterNakdiUserIds,awardrategomla,awardratehalf,dellaternakdipayed,accountids) VALUES ('admin', 'manager', '1', 'admin', '2026-09-13', '0', '1', '0' ,'0' ,'0','0','what is my question','how','0','0','1','0','0','','1','1','1','1','0','0','0','1','0','0','0','','','0','0','0',''); -- id=1
INSERT INTO user (userid, username, password, usergroupid, employeename, currentdate, conditions, saveid,userstoreid ,awardrate,searchinonesave, branchId,question, answer,blockedByLimits,loginip,lastactivetime,directSaveBills,userstoreidDef,storeSupervisor,storeSupervisorStores,awardrategomla,awardratehalf,dellaternakdipayed) VALUES ('-1', 'GT4', '456', '-1', 'GT4', '2026-09-13', '0', '1' ,'0' ,'0','0','0','what is','my company is GT4','0','::1','2026-09-13 14:24:38','0','0','1','1','0','0','0'); -- id=18446744073709551615
INSERT INTO billsettings (`billnameid`, `billpropertyid`, `billsettingsvalue`) VALUES (1, 105, 0),(1, 106, 0),(1, 107, 0),(1, 108, 0),(1, 109, 0),(1, 110, 0),(1, 111, 0),(1, 112, 0),(1, 113, 0),(1, 114, 0),(1, 115, 0),(1, 116, 0),(1, 117, 0),(1, 118, 0),(1, 119, 0),(1, 120, 0),(1, 121, 0),(1, 122, 0),(1, 123, 0),(1, 124, 0),(1, 125, 0),(1, 126, 0),(1, 127, 0),(1, 128, 0),(1, 129, 0); -- id=1093
INSERT INTO billsettings (`billnameid`, `billpropertyid`, `billsettingsvalue`) VALUES (3, 107, 0),(3, 109, 0),(3, 110, 0),(3, 111, 0),(3, 117, 0),(3, 118, 0),(3, 119, 0),(3, 120, 0),(3, 121, 0),(3, 122, 0),(3, 123, 0),(3, 124, 0),(3, 125, 0),(3, 126, 0),(3, 127, 0),(3, 128, 0),(3, 129, 0); -- id=1118
INSERT INTO billsettings (`billnameid`, `billpropertyid`, `billsettingsvalue`) VALUES (4, 106, 0),(4, 107, 0),(4, 108, 0),(4, 109, 0),(4, 110, 0),(4, 111, 0),(4, 112, 0),(4, 117, 0),(4, 118, 0),(4, 119, 0),(4, 120, 0),(4, 121, 0),(4, 122, 0),(4, 123, 0),(4, 124, 0),(4, 125, 0),(4, 126, 0),(4, 127, 0),(4, 128, 0),(4, 129, 0); -- id=1135
INSERT INTO billsettings (`billnameid`, `billpropertyid`, `billsettingsvalue`) VALUES (5, 106, 0),(5, 107, 0),(5, 108, 0),(5, 109, 0),(5, 110, 0),(5, 111, 0),(5, 112, 0),(5, 117, 0),(5, 118, 0),(5, 119, 0),(5, 120, 0),(5, 121, 0),(5, 122, 0),(5, 123, 0),(5, 124, 0),(5, 125, 0),(5, 126, 0),(5, 127, 0),(5, 128, 0),(5, 129, 0); -- id=1155
INSERT INTO billsettings (`billnameid`, `billpropertyid`, `billsettingsvalue`) VALUES (6, 105, 0),(6, 106, 0),(6, 107, 0),(6, 108, 0),(6, 109, 0),(6, 110, 0),(6, 111, 0),(6, 112, 0),(6, 117, 0),(6, 118, 0),(6, 119, 0),(6, 120, 0),(6, 121, 0),(6, 122, 0),(6, 123, 0),(6, 124, 0),(6, 125, 0),(6, 126, 0),(6, 127, 0),(6, 128, 0),(6, 129, 0); -- id=1175
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 10:54:43";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:24:48", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-09-13 14:24:48', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/index.php'); -- id=1
UPDATE programsettings SET companyname = 'GT4', address = 'القاهرة - المقطم - شارع 9 ', specializtion = 'برمجيات - مواقع انترنت - تطبيقات موبايل', phone = '0111007088', faxnumber = '', email = 'mousa_maged@hotmail.com', website = '', logo = '3f52022081b9a1a89c6f3246463c2d62.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` = 'D', taxcard = '123456789123', commercialregistration = '1234', costcenter = '1', clinic = '1', workshop = '1', transport = '1', manufacturing = '1', masterCopy = '0' , dailyentrydate = '2020-04-18' ,updatefiledate = '2026-09-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='L.E',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='1',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='0',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='9aad922c8dc25742295df2779fde48ab62230719d569b9aa71bf6d5e0e08471c7dbda60d508155af60894a0ba3bbd86ffbee699027a409bcd9ca11e28a846cc5',associatedtags='0',commentClientChasis='0',dollarExType='0',saudielectronicinvoice='0',saudielectronicinvoclient='0',productDiscount='0'
                ,reviewRecords='',reviewRecordsLastDate='0000-00-00',showepayrestaurant='0',showSellAllPriceInStoreDetail='0' WHERE programsettingsid = '1';
INSERT INTO simplemanufacturesetting (storeid, reducestoreamount,productsproductionequation,orderclient,taskOrderName,lowOutPriceAlert) VALUES ('1', '1', '0','0','0','0'); -- id=1
INSERT INTO currency (name, symbol, conversionFactor, conditions, userid, sysDate,otherconversionFactor) VALUES ('جنيه', 'EGP', '1', '0', '1', '2026-09-13 14:25:02','1'); -- id=1
INSERT INTO save (saveid, savename, savecurrentvalue, savedetails, savedate, conditions, userid,treeId) VALUES ('1', 'الخزنة الرئيسية', '0', '', '2026-09-13', '0', '1','383'); -- id=1
INSERT INTO unit (unitName, unitSymbol, unitDescription, unitDate, conditions, userId) VALUES ('قطعة', '', '', '2026-09-13', '0', '1'); -- id=1
INSERT INTO store (storeId, storeName, storeDate, storeDescription, conditions, userId,treeId,treeIdBetween) VALUES ('1', 'المخزن الرئيسي', '2026-09-13', "المخزن الرئيسي", '0', '1','382','51'); -- id=1
INSERT INTO sparepartstore (sparepartstoreId, storeName, storeDate, storeDescription, conditions, userId) VALUES ('1', 'مخزن قطع الغيار', '2026-09-13', 'مخزن قطع الغيار', '0', '1'); -- id=1
INSERT INTO supplier (supplierid, suppliername, supplieraddress, supplierphone, suppliercurrentDebt, supplierdetails, conditions, userid, supplierdate) VALUES ('1', 'مباشر', '', '', '0', 'مباشر', '0', '1', '2026-09-13'); -- id=1
INSERT INTO client (clientname, clientaddress, clientphone, clientmobile, clientdebt, clientdetails, conditions, clientdate, userid,clientareaid,clientcode,dailyentryid ,rondomtxt,clientStoreIds,obygyPatientId,debtLimit,typeclientid,priceTypeId,card_number,file_faida,specialDiscount,specialDiscountVal,file,addDate,mandobCollectRatio,webApiId,clientRFID,linkedSupplierId,postponeDays,studentid,taxnumber,password,clientTypeForTree,treeId,husbandNameObgy,txtNameE,facility,delegate,txtemail,commercial,valtaxnumber,clientaddress2,country,delegateid,datecustomeraccount,taxfile,fileimg,webStoreType,clientaddress3,tagids,email_verified,email_otp,email_otp_expiry) VALUES ('نقدي' , '', '', '', '0', 'نقدي', '0', '2026-09-13', '1', '1','','0','','-10','0','0','','0','0','','0','0','','','0','0','','0','0','0','','','0','384','','','','','','','','','','0','','','','0','','','0','0',''); -- id=1
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
CALL generateParcodes (99999);
DELETE availableparcode FROM availableparcode
                join product on product.parcode = availableparcode.value;
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-09-13 10:55:08";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-09-13 14:25:13', '1', 'handleExpiredCards', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=2
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 10:55:22";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:25:22", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('usergroupController.php', '2026-09-13 14:25:22', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/usergroupController.php?do=show'); -- id=3
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 10:55:25";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:25:25", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('usergroupController.php', '2026-09-13 14:25:25', '1', 'edit', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/usergroupController.php?do=edit&id=1'); -- id=4
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 10:55:38";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:25:38", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('usergroupController.php', '2026-09-13 14:25:38', '1', 'update', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/usergroupController.php?do=update'); -- id=5
UPDATE relusergroupproperties SET usergroupid = '1', propertyid = '632', propertyvalue = '1',theorder = '0' WHERE relusergrouppropertiesid = '2377';
UPDATE relusergroupproperties SET usergroupid = '1', propertyid = '640', propertyvalue = '1',theorder = '0' WHERE relusergrouppropertiesid = '2385';
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 10:55:39";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:25:43", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('usergroupController.php', '2026-09-13 14:25:43', '1', 'sucess', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/usergroupController.php?do=sucess'); -- id=6
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 10:55:45";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:25:45", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('usergroupController.php', '2026-09-13 14:25:45', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/usergroupController.php?do=show'); -- id=7
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 10:57:03";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:27:03", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-09-13 14:27:03', '1', 'addsellBill', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=8
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 10:57:14";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:27:14", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-09-13 14:27:14', '1', 'addsellBill', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 10:57:17";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:27:17", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-09-13 14:27:17', '1', 'addsellBill', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/sellbillController.php?do=addsellBill&billnameid=5'); -- id=10
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 10:57:19";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:27:19", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-09-13 14:27:19', '1', 'bill', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=11
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 10:57:30";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:27:30", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-09-13 14:27:30', '1', 'bill', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=12
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 10:58:02";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:28:02", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-09-13 14:28:02', '1', 'bill', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=13
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 10:58:12";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:28:12", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('expensesController.php', '2026-09-13 14:28:12', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/expensesController.php'); -- id=14
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 10:58:14";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:28:15", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('clientPayedDeptController.php', '2026-09-13 14:28:15', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/clientPayedDeptController.php'); -- id=15
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 10:58:18";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:28:18", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierPayedDeptController.php', '2026-09-13 14:28:18', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/supplierPayedDeptController.php'); -- id=16
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 10:58:20";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:28:20", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('savedailyController.php', '2026-09-13 14:28:20', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/savedailyController.php'); -- id=17
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 10:58:23";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:28:24", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('clientReportsController.php', '2026-09-13 14:28:24', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/clientReportsController.php'); -- id=18
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 10:58:26";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:28:26", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-09-13 14:28:26', '1', 'oneSupplier', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=19
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 10:58:28";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:28:28", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 14:28:28', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php'); -- id=20
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 10:58:31";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:28:31", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-09-13 14:28:31', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productController.php'); -- id=21
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 10:58:35";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:28:35", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('clientController.php', '2026-09-13 14:28:35', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/clientController.php'); -- id=22
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 10:58:37";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:28:37", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierController.php', '2026-09-13 14:28:37', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/supplierController.php'); -- id=23
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 10:58:39";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:28:39", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storedetailController.php', '2026-09-13 14:28:39', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/storedetailController.php'); -- id=24
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 10:58:42";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:28:42", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('salesreport.php', '2026-09-13 14:28:42', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/salesreport.php'); -- id=25
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 10:58:44";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:28:44", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('profitreportController.php', '2026-09-13 14:28:44', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/profitreportController.php'); -- id=26
INSERT INTO lastbillidspricesupdated (buybill, buyandret, retbuy, sell, sellandret, retsell,buyquantity,buyandretquantity) VALUES ('0', '0', '0', '0', '0', '0','0','0'); -- id=1
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 10:58:48";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:28:48", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('profitreportController.php', '2026-09-13 14:28:48', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/profitreportController.php'); -- id=27
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 10:58:50";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:28:50", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-09-13 14:28:50', '1', 'showbarcode', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productController.php?do=showbarcode'); -- id=28
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 10:58:52";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:28:52", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storereportController.php', '2026-09-13 14:28:52', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/storereportController.php'); -- id=29
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 10:58:54";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:28:54", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('clientdebt.php', '2026-09-13 14:28:54', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/clientdebt.php'); -- id=30
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 10:58:55";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:28:55", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('clientdebt.php', '2026-09-13 14:28:55', '1', 'showallajax', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/clientdebt.php?do=showallajax'); -- id=31
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 10:58:56";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:28:56", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyreport.php', '2026-09-13 14:28:56', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/buyreport.php'); -- id=32
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 10:58:58";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:28:58", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-09-13 14:28:58', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productController.php?do=show'); -- id=33
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 10:59:00";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:29:00", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('transfermoneyController.php', '2026-09-13 14:29:00', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/transfermoneyController.php'); -- id=34
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 10:59:03";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:29:03", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('clientController.php', '2026-09-13 14:29:03', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/clientController.php?do=show'); -- id=35
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 10:59:15";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:29:15", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('clientController.php', '2026-09-13 14:29:15', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/clientController.php?do=show'); -- id=36
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 10:59:20";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:29:20", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-09-13 14:29:20', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/sellbillController.php?do=show'); -- id=37
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 10:59:23";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:29:23", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('clientPayedDeptController.php', '2026-09-13 14:29:23', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/clientPayedDeptController.php?do=show'); -- id=38
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 10:59:27";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:29:27", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierPayedDeptController.php', '2026-09-13 14:29:27', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/supplierPayedDeptController.php'); -- id=39
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 10:59:37";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:29:37", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('saveController.php', '2026-09-13 14:29:38', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/saveController.php'); -- id=40
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:00:06";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:30:06", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('saveController.php', '2026-09-13 14:30:07', '1', 'add', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/saveController.php?do=add'); -- id=41
BEGIN;
INSERT INTO save (savename, savecurrentvalue, savedetails, savedate, conditions, userid, currencyId, sortby,treeId,saveTreeParentType,webApiId,savetypeid) VALUES ('البيت', '', '', '2026-09-13 14:30:07', '0', '1', '1', '0','0','0','0','0'); -- id=2
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('0','0', '0', '2', 'تم اضافة  خزنة باسم   [ البيت ] ', '2', '0', '2026-09-13 14:30:07', '1',  'saveController.php','0','','0'); -- id=1
INSERT INTO accountstree (name, customName, customNameEn, nameEn, parent, accountNature, theValue, theOrder, layingOrder, reportid, listId, notes, itemfrom, itemtype, itemtype2, itemtype3, userid, del, sysdate) VALUES ('البيت', 'البيت', 'البيت', 'البيت', '40', '0', '0', '0', '', '1', '1', '', '0', '3', '1', '', '1', '0', '2026-09-13 14:30:07'); -- id=419
UPDATE save SET savename = 'البيت', savecurrentvalue = '', savedetails = '', savedate = '2026-09-13 14:30:07', conditions = '0', userid = '1', sortby= '0',treeId='419',saveTreeParentType='0',savetypeid='0' WHERE saveid = '2';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:00:08";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:30:08", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('saveController.php', '2026-09-13 14:30:08', '1', 'sucess', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/saveController.php?do=sucess'); -- id=42
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:00:09";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:30:10", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('saveController.php', '2026-09-13 14:30:10', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/saveController.php?do=show'); -- id=43
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:00:15";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:30:15", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('transfermoneyController.php', '2026-09-13 14:30:15', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/transfermoneyController.php'); -- id=44
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:00:46";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:30:46", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('savedailyController.php', '2026-09-13 14:30:47', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/savedailyController.php'); -- id=45
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:00:57";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:30:57", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('saveController.php', '2026-09-13 14:30:57', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/saveController.php?do=show'); -- id=46
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:05:20";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:35:20", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-09-13 14:35:21', '1', 'addsellBill', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=47
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:08:47";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:38:47", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-09-13 14:38:47', '1', 'bill', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=48
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:08:54";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:38:54", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-09-13 14:38:54', '1', 'addsellBill', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=49
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:09:12";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:39:12", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('programsettingsController.php', '2026-09-13 14:39:13', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/programsettingsController.php'); -- id=50
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:09:23";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:39:23", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('programsettingsController.php', '2026-09-13 14:39:23', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/programsettingsController.php'); -- id=51
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:13:15";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:43:15", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('programsettingsController.php', '2026-09-13 14:43:16', '1', 'update', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/programsettingsController.php?do=update'); -- id=52
INSERT INTO ebillsetting (eTaxNum, eTaxNumBranch, eGovernorate, eCity, eStreet, eBuildingNum, eTaxType, eTaxTypeNum, eCompanyNameInTaxCard, eunitInTax) VALUES ('', '', '', '', '', '', '', '', '', ''); -- id=1
UPDATE programsettings SET companyname = 'الشاذلي للاضاءه الحديثه', address = 'كفر بهديه بجوار المستشفي<br/> المرتجع خلال 3 اشهورمن تاريخ الفاتوره<br/>الا الاسلاك خلال 20يوم<br/>ممنوع رجوع الاسلاك واللد المفتوح', specializtion = '', phone = '01096879556-01091024885', faxnumber = '', email = 'mousa_maged@hotmail.com', website = '', logo = '42f5d87d052910c7bc721e3958a8d368.png', 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` = 'D', taxcard = '123456789123', commercialregistration = '1234', costcenter = '1', clinic = '1', workshop = '1', transport = '1', manufacturing = '1', masterCopy = '0' , dailyentrydate = '2020-04-18' ,updatefiledate = '2026-09-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',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='L.E',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='9aad922c8dc25742295df2779fde48ab62230719d569b9aa71bf6d5e0e08471c7dbda60d508155af60894a0ba3bbd86ffbee699027a409bcd9ca11e28a846cc5',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-09-13 11:13:17";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:43:23", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('programsettingsController.php', '2026-09-13 14:43:23', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/programsettingsController.php'); -- id=53
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:13:27";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:43:27", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-09-13 14:43:27', '1', 'addsellBill', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=54
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:13:50";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:43:50", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 14:43:50', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php'); -- id=55
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:14:16";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:44:16", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 14:44:16', '1', 'add2', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php?do=add2'); -- id=56
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-09-13','','0', '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=1
INSERT INTO onlinetempcategory (catid, edited, sysdate, userid)
                VALUES (1, 1,'2026-09-13 14:44:16',1)
                ON DUPLICATE KEY UPDATE catid = 1, edited = 1, sysdate = '2026-09-13 14:44:16', userid = 1; -- id=1
INSERT INTO productcatunit (unitid, productcatid, productnumber, productcatunitdate, userid, conditions) VALUES ('1', '1', '1', '2026-09-13', '1', '0'); -- id=1
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:14:17";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:44:17", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 14:44:17', '1', 'sucess', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php?do=sucess'); -- id=57
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:14:19";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:44:19", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 14:44:19', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php?do=show'); -- id=58
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:15:09";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:45:09", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 14:45:10', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php'); -- id=59
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:15:29";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:45:29", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 14:45:29', '1', 'add2', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php?do=add2'); -- id=60
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-09-13','','0', '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=2
INSERT INTO onlinetempcategory (catid, edited, sysdate, userid)
                VALUES (2, 1,'2026-09-13 14:45:30',1)
                ON DUPLICATE KEY UPDATE catid = 2, edited = 1, sysdate = '2026-09-13 14:45:30', userid = 1; -- id=2
INSERT INTO productcatunit (unitid, productcatid, productnumber, productcatunitdate, userid, conditions) VALUES ('1', '2', '1', '2026-09-13', '1', '0'); -- id=2
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:15:30";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:45:30", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 14:45:30', '1', 'sucess', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php?do=sucess'); -- id=61
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:15:32";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:45:32", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 14:45:32', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php?do=show'); -- id=62
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:15:39";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:45:39", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-09-13 14:45:39', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productController.php'); -- id=63
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:17:22";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:47:22", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-09-13 14:47:22', '1', 'add', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productController.php?do=add'); -- id=64
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 ('شاسيه بالوش اسمر ','','1','52.75','53.33','54.78','53.33','2026-09-13','0','1','0','','0','0','0','0','0','52.75','52.75','52.75','52.75','52.75','0','1.1','1.1','3.85','.','0','0','0','52.75','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','52.75','52.75','0','0','0','0','0','0','0','0','0','0','0','0','-1','0','','52.75','0','0','0','0','0','0','','','0','0','0','0'); -- id=1
UPDATE product SET productName = 'شاسيه بالوش اسمر ', productDescription = '', productCatId = '1', productBuyPrice = '52.75', productSellAllPrice = '53.33', productSellUnitPrice = '54.78', productSellHalfPrice = '53.33', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '0', parcode = '00001',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '52.75',lastbuyprice_withDiscount = '52.75',meanbuyprice = '52.75',meanbuyprice_withDiscount = '52.75' , productbuypricereal = '52.75' , buypricereal_precentage = '0' , buytotal_precentage = '1.1' , buyhalf_precentage = '1.1' , buypart_precentage = '3.85',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='52.75',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='52.75',meanbuyprice_withTax='52.75',price4='0',price5='0',price6='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='52.75',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1';
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', '1', '1.00', '2026-09-13', '1', '0','0000101','53.33','53.33','54.78','52.75','','0','0','0','0','0','0','0','0','0','0'); -- id=1
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1', '1', '0', '1', '2026-09-13'); -- id=1
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1', '1', '0', '0', '1', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-09-13','0','0'); -- id=1
INSERT INTO onlinestoresetting (url, availableStores, onlinestoreid, onlineclientareaid, updatetype, catprohour, catprominute, proquantityhour, proquantityminute, clientshour, clientsminute, ordershour, ordersminute, clientdebtchangeStartId) VALUES ('', '', '2', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '-1'); -- id=1
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1, 1,'2026-09-13 14:47:23',1)
                ON DUPLICATE KEY UPDATE productid = 1, edited = 1, sysdate = '2026-09-13 14:47:23', userid = 1; -- id=1
UPDATE product SET productName = 'شاسيه بالوش اسمر ', productDescription = '', productCatId = '1', productBuyPrice = '52.75', productSellAllPrice = '53.33', productSellUnitPrice = '54.78', productSellHalfPrice = '53.33', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '0', parcode = '00001',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '52.75',lastbuyprice_withDiscount = '52.75',meanbuyprice = '52.75',meanbuyprice_withDiscount = '52.75' , productbuypricereal = '52.75' , buypricereal_precentage = '0' , buytotal_precentage = '1.1' , buyhalf_precentage = '1.1' , buypart_precentage = '3.85',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='52.75',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='52.75',meanbuyprice_withTax='52.75',price4='0',price5='0',price6='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='52.75',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:17:27";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:47:27", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-09-13 14:47:27', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productController.php'); -- id=65
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:17:47";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:47:47", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('inventoryController.php', '2026-09-13 14:47:47', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/inventoryController.php'); -- id=66
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:18:44";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:48:44", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('inventoryController.php', '2026-09-13 14:48:44', '1', 'autosave', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/inventoryController.php?do=autosave'); -- id=67
UPDATE storedetail SET  productquantity = '925', userid = '1', storedetaildate = '2026-09-13' WHERE storedetailid = '1';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1', '1', '925', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '0', '925', '1', '2026-09-13','0','0'); -- id=2
BEGIN;
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '48793.75', '48793.75', '2026-09-13', '1', '0', '0', '2026-09-13 14:48:44','اعادة جرد للمنتج : (شاسيه بالوش اسمر /كيون) فى مخزن : (المخزن الرئيسي) بالكمية : 925','1','0',null,'0','2','inventoryController.php?do=details&id=2'); -- id=1
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('1', '382', '48793.75', '','0'); -- id=1
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '48793.75', 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 ('1', '188', '48793.75', '','0'); -- id=1
UPDATE accountstree SET name = 'عجز وزيادة المخزون', customName = 'عجز وزيادة المخزون', customNameEn = '', nameEn = '', parent = '159', accountNature = '0', theValue = '-48793.75', 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-09-13 11:18:45";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:48:45", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-09-13 14:48:45', '1', 'addsellBill', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=68
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:19:24";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:49:24", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-09-13 14:49:24', '1', 'bill', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=69
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-09-13 14:49:47', '0', '', '','0','0','','','','','','','','','','0','0','1','0','0','0'); -- id=2
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 ('2', '0', '', '0', 'إضافة مورد جديد', '2', '', '2026-09-13 14:49:47', '1', 'supplierController.php', '', '0','', '0','1','1','0','1','0','0','0','0',''); -- id=1
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-09-13 14:49:47'); -- id=420
UPDATE supplier SET suppliername = 'كيون', supplieraddress = '', supplierphone = '', suppliercurrentDebt = '0.00', supplierdetails = '', conditions = '0', userid = '1', supplierdate = '2026-09-13', dailyentryid = '0', category_id = '', typesupplier_id = '',linkedClientId = '0',inUse='0',suppliercode = '',goverareaid='',namepayeecheck = '',suppliermobile='',warrantyOfficer = '',warrantymobile='',sellername = '',sellermobile='',taxnumber = '',supplierTypeForTree='0',treeId='420',sullpierCurrencyid='1',suppliercurrentDebtInCurrency='0',webApiId='0',shippingDiscountPer='0' WHERE supplierid = '2';
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:20:20";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:50:21", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierController.php', '2026-09-13 14:50:21', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/supplierController.php?do=show'); -- id=70
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:20:26";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:50:26", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierController.php', '2026-09-13 14:50:26', '1', 'edit', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/supplierController.php?do=edit&id=2'); -- id=71
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:21:02";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:51:02", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierController.php', '2026-09-13 14:51:02', '1', 'edit', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/supplierController.php?do=edit&id=2'); -- id=72
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:21:41";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:51:41", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierDeficitController.php', '2026-09-13 14:51:41', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/supplierDeficitController.php'); -- id=73
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:22:01";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:52:02", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierController.php', '2026-09-13 14:52:02', '1', 'deleteFinaly', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/supplierController.php?do=deleteFinaly&id=2&action=0'); -- id=74
UPDATE supplier SET conditions = 2, suppliername = "كيون-del"
		        WHERE supplierid =2 ;
UPDATE accountstree SET name = 'كيون', customName = 'كيون', customNameEn = 'كيون', nameEn = 'كيون', parent = '81', accountNature = '1', theValue = '0.00', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '1', sysdate = '2026-09-13 14:49:47' WHERE id = '420';
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:22:02";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:52:02", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierController.php', '2026-09-13 14:52:03', '1', 'sucess', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/supplierController.php?do=sucess'); -- id=75
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:22:04";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:52:04", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierController.php', '2026-09-13 14:52:04', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/supplierController.php?do=show'); -- id=76
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:22:14";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:52:14", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-09-13 14:52:14', '1', 'bill', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=77
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:22:25";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 14:52:25", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierController.php', '2026-09-13 14:52:26', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/supplierController.php'); -- id=78
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:30: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-09-13 11:30:32";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:00:32", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-09-13 15:00:32', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/index.php'); -- id=79
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-09-13 11:30:33";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-09-13 15:00:33', '1', 'handleExpiredCards', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=80
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:34:44";
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-09-13 11:34:55";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:04:55", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-09-13 15:04:55', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/index.php'); -- id=81
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-09-13 11:34:56";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-09-13 15:04:56', '1', 'handleExpiredCards', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=82
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:35:17";
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:35:17";
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:35:21";
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-09-13 11:35:24";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:05:24", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-09-13 15:05:25', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/index.php'); -- id=83
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-09-13 11:35:26";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-09-13 15:05:26', '1', 'handleExpiredCards', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=84
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:35:30";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:05:30", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 15:05:30', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php'); -- id=85
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:35:52";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:05:52", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-09-13 15:05:52', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productController.php'); -- id=86
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:35:57";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:05:57", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 15:05:57', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php'); -- id=87
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:36:11";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:06:11", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 15:06:11', '1', 'add2', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php?do=add2'); -- id=88
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-09-13','','0', '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=3
INSERT INTO onlinetempcategory (catid, edited, sysdate, userid)
                VALUES (3, 1,'2026-09-13 15:06:11',1)
                ON DUPLICATE KEY UPDATE catid = 3, edited = 1, sysdate = '2026-09-13 15:06:11', userid = 1; -- id=3
INSERT INTO productcatunit (unitid, productcatid, productnumber, productcatunitdate, userid, conditions) VALUES ('1', '3', '1', '2026-09-13', '1', '0'); -- id=3
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:36:12";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:06:12", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 15:06:12', '1', 'sucess', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php?do=sucess'); -- id=89
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:36:13";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:06:13", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 15:06:13', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php?do=show'); -- id=90
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:36:18";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:06:18", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 15:06:18', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php'); -- id=91
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:36:42";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:06:42", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 15:06:42', '1', 'add2', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php?do=add2'); -- id=92
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-09-13','','0', '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=4
INSERT INTO onlinetempcategory (catid, edited, sysdate, userid)
                VALUES (4, 1,'2026-09-13 15:06:42',1)
                ON DUPLICATE KEY UPDATE catid = 4, edited = 1, sysdate = '2026-09-13 15:06:42', userid = 1; -- id=4
INSERT INTO productcatunit (unitid, productcatid, productnumber, productcatunitdate, userid, conditions) VALUES ('1', '4', '1', '2026-09-13', '1', '0'); -- id=4
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:36:43";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:06:43", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 15:06:43', '1', 'sucess', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php?do=sucess'); -- id=93
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:36:44";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:06:45", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 15:06:45', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php?do=show'); -- id=94
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:36:49";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:06:49", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 15:06:49', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php'); -- id=95
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:37:04";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:07:04", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 15:07:04', '1', 'add2', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php?do=add2'); -- id=96
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-09-13','','0', '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=5
INSERT INTO onlinetempcategory (catid, edited, sysdate, userid)
                VALUES (5, 1,'2026-09-13 15:07:04',1)
                ON DUPLICATE KEY UPDATE catid = 5, edited = 1, sysdate = '2026-09-13 15:07:04', userid = 1; -- id=5
INSERT INTO productcatunit (unitid, productcatid, productnumber, productcatunitdate, userid, conditions) VALUES ('1', '5', '1', '2026-09-13', '1', '0'); -- id=5
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:37:05";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:07:05", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 15:07:05', '1', 'sucess', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php?do=sucess'); -- id=97
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:37:06";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:07:06", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 15:07:06', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php?do=show'); -- id=98
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:37:07";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:07:07", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 15:07:07', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php'); -- id=99
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:37:20";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:07:20", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 15:07:20', '1', 'add2', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php?do=add2'); -- id=100
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-09-13','','0', '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=6
INSERT INTO onlinetempcategory (catid, edited, sysdate, userid)
                VALUES (6, 1,'2026-09-13 15:07:21',1)
                ON DUPLICATE KEY UPDATE catid = 6, edited = 1, sysdate = '2026-09-13 15:07:21', userid = 1; -- id=6
INSERT INTO productcatunit (unitid, productcatid, productnumber, productcatunitdate, userid, conditions) VALUES ('1', '6', '1', '2026-09-13', '1', '0'); -- id=6
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:37:21";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:07:21", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 15:07:21', '1', 'sucess', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php?do=sucess'); -- id=101
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:37:23";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:07:23", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 15:07:23', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php?do=show'); -- id=102
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:37:24";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:07:24", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 15:07:24', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php'); -- id=103
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:37:41";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:07:41", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 15:07:41', '1', 'add2', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php?do=add2'); -- id=104
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-09-13','','0', '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=7
INSERT INTO onlinetempcategory (catid, edited, sysdate, userid)
                VALUES (7, 1,'2026-09-13 15:07:42',1)
                ON DUPLICATE KEY UPDATE catid = 7, edited = 1, sysdate = '2026-09-13 15:07:42', userid = 1; -- id=7
INSERT INTO productcatunit (unitid, productcatid, productnumber, productcatunitdate, userid, conditions) VALUES ('1', '7', '1', '2026-09-13', '1', '0'); -- id=7
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:37:42";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:07:42", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 15:07:42', '1', 'sucess', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php?do=sucess'); -- id=105
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:37:44";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:07:44", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 15:07:44', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php?do=show'); -- id=106
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:37:45";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:07:45", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 15:07:45', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php'); -- id=107
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:38:03";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:08:03", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 15:08:03', '1', 'add2', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php?do=add2'); -- id=108
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-09-13','','0', '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=8
INSERT INTO onlinetempcategory (catid, edited, sysdate, userid)
                VALUES (8, 1,'2026-09-13 15:08:03',1)
                ON DUPLICATE KEY UPDATE catid = 8, edited = 1, sysdate = '2026-09-13 15:08:03', userid = 1; -- id=8
INSERT INTO productcatunit (unitid, productcatid, productnumber, productcatunitdate, userid, conditions) VALUES ('1', '8', '1', '2026-09-13', '1', '0'); -- id=8
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:38:03";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:08:03", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 15:08:03', '1', 'sucess', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php?do=sucess'); -- id=109
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:38:05";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:08:05", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 15:08:05', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php?do=show'); -- id=110
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:38:16";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:08:17", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 15:08:17', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php'); -- id=111
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:38:30";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:08:30", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 15:08:30', '1', 'add2', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php?do=add2'); -- id=112
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-09-13','','0', '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=9
INSERT INTO onlinetempcategory (catid, edited, sysdate, userid)
                VALUES (9, 1,'2026-09-13 15:08:30',1)
                ON DUPLICATE KEY UPDATE catid = 9, edited = 1, sysdate = '2026-09-13 15:08:30', userid = 1; -- id=9
INSERT INTO productcatunit (unitid, productcatid, productnumber, productcatunitdate, userid, conditions) VALUES ('1', '9', '1', '2026-09-13', '1', '0'); -- id=9
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:38:31";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:08:31", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 15:08:31', '1', 'sucess', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php?do=sucess'); -- id=113
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:38:33";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:08:33", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 15:08:33', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php?do=show'); -- id=114
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:38:35";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:08:35", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 15:08:35', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php'); -- id=115
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:38:44";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:08:44", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 15:08:44', '1', 'add2', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php?do=add2'); -- id=116
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-09-13','','0', '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=10
INSERT INTO onlinetempcategory (catid, edited, sysdate, userid)
                VALUES (10, 1,'2026-09-13 15:08:44',1)
                ON DUPLICATE KEY UPDATE catid = 10, edited = 1, sysdate = '2026-09-13 15:08:44', userid = 1; -- id=10
INSERT INTO productcatunit (unitid, productcatid, productnumber, productcatunitdate, userid, conditions) VALUES ('1', '10', '1', '2026-09-13', '1', '0'); -- id=10
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:38:45";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:08:45", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 15:08:45', '1', 'sucess', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php?do=sucess'); -- id=117
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:38:46";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:08:46", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 15:08:46', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php?do=show'); -- id=118
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:38:53";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:08:53", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 15:08:53', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php'); -- id=119
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:39:05";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:09:05", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 15:09:05', '1', 'add2', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php?do=add2'); -- id=120
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-09-13','','0', '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=11
INSERT INTO onlinetempcategory (catid, edited, sysdate, userid)
                VALUES (11, 1,'2026-09-13 15:09:05',1)
                ON DUPLICATE KEY UPDATE catid = 11, edited = 1, sysdate = '2026-09-13 15:09:05', userid = 1; -- id=11
INSERT INTO productcatunit (unitid, productcatid, productnumber, productcatunitdate, userid, conditions) VALUES ('1', '11', '1', '2026-09-13', '1', '0'); -- id=11
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:39:05";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:09:06", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 15:09:06', '1', 'sucess', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php?do=sucess'); -- id=121
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:39:07";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:09:07", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 15:09:07', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php?do=show'); -- id=122
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:39:10";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:09:10", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 15:09:10', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php'); -- id=123
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:39:21";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:09:21", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 15:09:21', '1', 'add2', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php?do=add2'); -- id=124
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-09-13','','0', '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=12
INSERT INTO onlinetempcategory (catid, edited, sysdate, userid)
                VALUES (12, 1,'2026-09-13 15:09:22',1)
                ON DUPLICATE KEY UPDATE catid = 12, edited = 1, sysdate = '2026-09-13 15:09:22', userid = 1; -- id=12
INSERT INTO productcatunit (unitid, productcatid, productnumber, productcatunitdate, userid, conditions) VALUES ('1', '12', '1', '2026-09-13', '1', '0'); -- id=12
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:39:22";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:09:22", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 15:09:22', '1', 'sucess', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php?do=sucess'); -- id=125
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:39:24";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:09:24", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 15:09:24', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php?do=show'); -- id=126
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:39:25";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:09:25", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 15:09:25', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php'); -- id=127
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:39:35";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:09:35", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 15:09:35', '1', 'add2', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php?do=add2'); -- id=128
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-09-13','','0', '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=13
INSERT INTO onlinetempcategory (catid, edited, sysdate, userid)
                VALUES (13, 1,'2026-09-13 15:09:35',1)
                ON DUPLICATE KEY UPDATE catid = 13, edited = 1, sysdate = '2026-09-13 15:09:35', userid = 1; -- id=13
INSERT INTO productcatunit (unitid, productcatid, productnumber, productcatunitdate, userid, conditions) VALUES ('1', '13', '1', '2026-09-13', '1', '0'); -- id=13
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:39:36";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:09:36", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 15:09:36', '1', 'sucess', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php?do=sucess'); -- id=129
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:39:38";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:09:38", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 15:09:38', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php?do=show'); -- id=130
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:39:44";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:09:44", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 15:09:44', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php'); -- id=131
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:40:06";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:10:06", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 15:10:06', '1', 'add2', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php?do=add2'); -- id=132
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-09-13','','0', '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=14
INSERT INTO onlinetempcategory (catid, edited, sysdate, userid)
                VALUES (14, 1,'2026-09-13 15:10:06',1)
                ON DUPLICATE KEY UPDATE catid = 14, edited = 1, sysdate = '2026-09-13 15:10:06', userid = 1; -- id=14
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:40:07";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:10:07", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 15:10:07', '1', 'sucess', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php?do=sucess'); -- id=133
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:40:08";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:10:08", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 15:10:09', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php?do=show'); -- id=134
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:40:23";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:10:23", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 15:10:23', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php'); -- id=135
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:40:39";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:10:39", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 15:10:39', '1', 'add2', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php?do=add2'); -- id=136
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-09-13','','0', '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=15
INSERT INTO onlinetempcategory (catid, edited, sysdate, userid)
                VALUES (15, 1,'2026-09-13 15:10:40',1)
                ON DUPLICATE KEY UPDATE catid = 15, edited = 1, sysdate = '2026-09-13 15:10:40', userid = 1; -- id=15
INSERT INTO productcatunit (unitid, productcatid, productnumber, productcatunitdate, userid, conditions) VALUES ('1', '15', '1', '2026-09-13', '1', '0'); -- id=14
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:40:40";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:10:40", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 15:10:40', '1', 'sucess', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php?do=sucess'); -- id=137
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:40:42";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:10:42", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 15:10:42', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php?do=show'); -- id=138
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:40:46";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:10:46", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 15:10:46', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php'); -- id=139
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:41:03";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:11:03", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 15:11:04', '1', 'add2', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php?do=add2'); -- id=140
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-09-13','','0', '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=16
INSERT INTO onlinetempcategory (catid, edited, sysdate, userid)
                VALUES (16, 1,'2026-09-13 15:11:04',1)
                ON DUPLICATE KEY UPDATE catid = 16, edited = 1, sysdate = '2026-09-13 15:11:04', userid = 1; -- id=16
INSERT INTO productcatunit (unitid, productcatid, productnumber, productcatunitdate, userid, conditions) VALUES ('1', '16', '1', '2026-09-13', '1', '0'); -- id=15
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:41:04";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:11:04", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 15:11:04', '1', 'sucess', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php?do=sucess'); -- id=141
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 11:41:06";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:11:06", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 15:11:06', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php?do=show'); -- id=142
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 12:26:19";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:56:19", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 15:56:19', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php'); -- id=143
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 12:26:43";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:56:43", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 15:56:43', '1', 'add2', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php?do=add2'); -- id=144
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-09-13','','0', '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=17
INSERT INTO onlinetempcategory (catid, edited, sysdate, userid)
                VALUES (17, 1,'2026-09-13 15:56:43',1)
                ON DUPLICATE KEY UPDATE catid = 17, edited = 1, sysdate = '2026-09-13 15:56:43', userid = 1; -- id=17
INSERT INTO productcatunit (unitid, productcatid, productnumber, productcatunitdate, userid, conditions) VALUES ('1', '17', '1', '2026-09-13', '1', '0'); -- id=16
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 12:26:44";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:56:44", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 15:56:44', '1', 'sucess', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php?do=sucess'); -- id=145
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 12:26:45";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:56:45", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-09-13 15:56:46', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productCatController.php?do=show'); -- id=146
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 12:27:34";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:57:34", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierController.php', '2026-09-13 15:57:34', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/supplierController.php'); -- id=147
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 12:28:33";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:58:33", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierController.php', '2026-09-13 15:58:33', '1', 'add', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/supplierController.php?do=add'); -- id=148
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 ('كيون حساب نشات', '', '', '403597', '', '0', '1', '2026-09-13 15:58:34', '0', '', '','0','0','','','','','','','','','','0','0','1','403597','0','0'); -- id=3
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 ('3', '0', '403597', '0', 'إضافة مورد جديد', '3', '403597', '2026-09-13 15:58:34', '1', 'supplierController.php', '', '0','', '0','1','1','403597','1','0','403597','403597','0',''); -- id=2
UPDATE client SET clientname = '', clientaddress = '', clientphone = '', clientmobile = '', clientdebt = '', clientdetails = '', conditions = null, clientdate = '', userid = null  , clientareaid = null  ,clientcode = '',dailyentryid = null , rondomtxt = '',clientStoreIds = '', obygyPatientId = '0' , debtLimit='0' , typeclientid='',priceTypeId='0',lastEditUser = '0',card_number = '0',file_faida = '',specialDiscount = '0',specialDiscountVal = '0',file = '',mandobCollectRatio='0',webApiId ='0' ,clientRFID = '',linkedSupplierId = '3',postponeDays='0', studentid='0', taxnumber='', password='',clientTypeForTree='0',treeId='0',husbandNameObgy='',txtNameE='',facility='',delegate='',txtemail='',commercial='',valtaxnumber='',clientaddress2='',country='',delegateid='0',datecustomeraccount='',taxfile='',fileimg='',webStoreType='0',clientaddress3='',tagids='',email_verified='0',email_otp='0',email_otp_expiry='' WHERE clientid = null;
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-09-13 15:58:35'); -- id=421
BEGIN;
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '403597', '403597', '2026-09-13', '1', '0', '0', '2026-09-13 15:58:35','إضافة مورد  ( كيون حساب نشات ) ','1','0','0','0','3','supplierController.php?do=edit&id=3'); -- id=2
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2', '121', '403597', '','0'); -- id=2
UPDATE accountstree SET name = 'حساب وسيط للارصدة الافتتاحية', customName = 'حساب وسيط للارصدة الافتتاحية', customNameEn = 'Paid Capital', nameEn = 'Paid Capital', parent = '119', accountNature = '1', theValue = '-403597', 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';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2', '421', '403597', '','0'); -- id=2
UPDATE accountstree SET name = 'كيون حساب نشات', customName = 'كيون حساب نشات', customNameEn = 'كيون حساب نشات', nameEn = 'كيون حساب نشات', parent = '81', accountNature = '1', theValue = '403597', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-13 15:58:35' WHERE id = '421';
COMMIT;
UPDATE supplier SET suppliername = 'كيون حساب نشات', supplieraddress = '', supplierphone = '', suppliercurrentDebt = '403597.00', supplierdetails = '', conditions = '0', userid = '1', supplierdate = '2026-09-13', dailyentryid = '2', category_id = '', typesupplier_id = '',linkedClientId = '0',inUse='0',suppliercode = '',goverareaid='',namepayeecheck = '',suppliermobile='',warrantyOfficer = '',warrantymobile='',sellername = '',sellermobile='',taxnumber = '',supplierTypeForTree='0',treeId='421',sullpierCurrencyid='1',suppliercurrentDebtInCurrency='403597',webApiId='0',shippingDiscountPer='0' WHERE supplierid = '3';
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 12:28:36";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:58:36", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierController.php', '2026-09-13 15:58:37', '1', 'sucess', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/supplierController.php?do=sucess'); -- id=149
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 12:28:38";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:58:38", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierController.php', '2026-09-13 15:58:38', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/supplierController.php?do=show'); -- id=150
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 12:28:39";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:58:40", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierController.php', '2026-09-13 15:58:40', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/supplierController.php'); -- id=151
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 12:29:22";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:59:22", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierController.php', '2026-09-13 15:59:22', '1', 'add', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/supplierController.php?do=add'); -- id=152
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 ('كيون حساب محمد', '', '', '287447', '', '0', '1', '2026-09-13 15:59:23', '0', '', '','0','0','','','','','','','','','','0','0','1','287447','0','0'); -- id=4
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 ('4', '0', '287447', '0', 'إضافة مورد جديد', '4', '287447', '2026-09-13 15:59:23', '1', 'supplierController.php', '', '0','', '0','1','1','287447','1','0','287447','287447','0',''); -- id=3
UPDATE client SET clientname = '', clientaddress = '', clientphone = '', clientmobile = '', clientdebt = '', clientdetails = '', conditions = null, clientdate = '', userid = null  , clientareaid = null  ,clientcode = '',dailyentryid = null , rondomtxt = '',clientStoreIds = '', obygyPatientId = '0' , debtLimit='0' , typeclientid='',priceTypeId='0',lastEditUser = '0',card_number = '0',file_faida = '',specialDiscount = '0',specialDiscountVal = '0',file = '',mandobCollectRatio='0',webApiId ='0' ,clientRFID = '',linkedSupplierId = '4',postponeDays='0', studentid='0', taxnumber='', password='',clientTypeForTree='0',treeId='0',husbandNameObgy='',txtNameE='',facility='',delegate='',txtemail='',commercial='',valtaxnumber='',clientaddress2='',country='',delegateid='0',datecustomeraccount='',taxfile='',fileimg='',webStoreType='0',clientaddress3='',tagids='',email_verified='0',email_otp='0',email_otp_expiry='' WHERE clientid = null;
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-09-13 15:59:24'); -- id=422
BEGIN;
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '287447', '287447', '2026-09-13', '1', '0', '0', '2026-09-13 15:59:24','إضافة مورد  ( كيون حساب محمد ) ','1','0','0','0','4','supplierController.php?do=edit&id=4'); -- id=3
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('3', '121', '287447', '','0'); -- id=3
UPDATE accountstree SET name = 'حساب وسيط للارصدة الافتتاحية', customName = 'حساب وسيط للارصدة الافتتاحية', customNameEn = 'Paid Capital', nameEn = 'Paid Capital', parent = '119', accountNature = '1', theValue = '-691044', 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';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('3', '422', '287447', '','0'); -- id=3
UPDATE accountstree SET name = 'كيون حساب محمد', customName = 'كيون حساب محمد', customNameEn = 'كيون حساب محمد', nameEn = 'كيون حساب محمد', parent = '81', accountNature = '1', theValue = '287447', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-13 15:59:24' WHERE id = '422';
COMMIT;
UPDATE supplier SET suppliername = 'كيون حساب محمد', supplieraddress = '', supplierphone = '', suppliercurrentDebt = '287447.00', supplierdetails = '', conditions = '0', userid = '1', supplierdate = '2026-09-13', dailyentryid = '3', category_id = '', typesupplier_id = '',linkedClientId = '0',inUse='0',suppliercode = '',goverareaid='',namepayeecheck = '',suppliermobile='',warrantyOfficer = '',warrantymobile='',sellername = '',sellermobile='',taxnumber = '',supplierTypeForTree='0',treeId='422',sullpierCurrencyid='1',suppliercurrentDebtInCurrency='287447',webApiId='0',shippingDiscountPer='0' WHERE supplierid = '4';
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 12:29:25";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:59:25", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierController.php', '2026-09-13 15:59:25', '1', 'sucess', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/supplierController.php?do=sucess'); -- id=153
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 12:29:27";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:59:27", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierController.php', '2026-09-13 15:59:27', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/supplierController.php?do=show'); -- id=154
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 12:29:55";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 15:59:55", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierPayedDeptController.php', '2026-09-13 15:59:55', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/supplierPayedDeptController.php'); -- id=155
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 12:30:23";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 16:00:23", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-09-13 16:00:23', '1', 'bill', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=156
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 12:30:45";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 16:00:45", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-09-13 16:00:45', '1', 'addsellBill', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=157
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 12:32:14";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 16:02:14", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-09-13 16:02:14', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productController.php'); -- id=158
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 12:32:44";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 16:02:45", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierController.php', '2026-09-13 16:02:45', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/supplierController.php'); -- id=159
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 12:33:07";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 16:03:07", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierController.php', '2026-09-13 16:03:07', '1', 'add', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/supplierController.php?do=add'); -- id=160
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 ('العيسوي حساب نشات', '', '', '31075', '', '0', '1', '2026-09-13 16:03:07', '0', '', '','0','0','','','','','','','','','','0','0','1','31075','0','0'); -- id=5
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 ('5', '0', '31075', '0', 'إضافة مورد جديد', '5', '31075', '2026-09-13 16:03:07', '1', 'supplierController.php', '', '0','', '0','1','1','31075','1','0','31075','31075','0',''); -- id=4
UPDATE client SET clientname = '', clientaddress = '', clientphone = '', clientmobile = '', clientdebt = '', clientdetails = '', conditions = null, clientdate = '', userid = null  , clientareaid = null  ,clientcode = '',dailyentryid = null , rondomtxt = '',clientStoreIds = '', obygyPatientId = '0' , debtLimit='0' , typeclientid='',priceTypeId='0',lastEditUser = '0',card_number = '0',file_faida = '',specialDiscount = '0',specialDiscountVal = '0',file = '',mandobCollectRatio='0',webApiId ='0' ,clientRFID = '',linkedSupplierId = '5',postponeDays='0', studentid='0', taxnumber='', password='',clientTypeForTree='0',treeId='0',husbandNameObgy='',txtNameE='',facility='',delegate='',txtemail='',commercial='',valtaxnumber='',clientaddress2='',country='',delegateid='0',datecustomeraccount='',taxfile='',fileimg='',webStoreType='0',clientaddress3='',tagids='',email_verified='0',email_otp='0',email_otp_expiry='' WHERE clientid = null;
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-09-13 16:03:09'); -- id=423
BEGIN;
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '31075', '31075', '2026-09-13', '1', '0', '0', '2026-09-13 16:03:09','إضافة مورد  ( العيسوي حساب نشات ) ','1','0','0','0','5','supplierController.php?do=edit&id=5'); -- id=4
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('4', '121', '31075', '','0'); -- id=4
UPDATE accountstree SET name = 'حساب وسيط للارصدة الافتتاحية', customName = 'حساب وسيط للارصدة الافتتاحية', customNameEn = 'Paid Capital', nameEn = 'Paid Capital', parent = '119', accountNature = '1', theValue = '-722119', 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';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('4', '423', '31075', '','0'); -- id=4
UPDATE accountstree SET name = 'العيسوي حساب نشات', customName = 'العيسوي حساب نشات', customNameEn = 'العيسوي حساب نشات', nameEn = 'العيسوي حساب نشات', parent = '81', accountNature = '1', theValue = '31075', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-13 16:03:09' WHERE id = '423';
COMMIT;
UPDATE supplier SET suppliername = 'العيسوي حساب نشات', supplieraddress = '', supplierphone = '', suppliercurrentDebt = '31075.00', supplierdetails = '', conditions = '0', userid = '1', supplierdate = '2026-09-13', dailyentryid = '4', category_id = '', typesupplier_id = '',linkedClientId = '0',inUse='0',suppliercode = '',goverareaid='',namepayeecheck = '',suppliermobile='',warrantyOfficer = '',warrantymobile='',sellername = '',sellermobile='',taxnumber = '',supplierTypeForTree='0',treeId='423',sullpierCurrencyid='1',suppliercurrentDebtInCurrency='31075',webApiId='0',shippingDiscountPer='0' WHERE supplierid = '5';
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 12:33:09";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 16:03:09", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierController.php', '2026-09-13 16:03:09', '1', 'sucess', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/supplierController.php?do=sucess'); -- id=161
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 12:33:11";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 16:03:11", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierController.php', '2026-09-13 16:03:11', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/supplierController.php?do=show'); -- id=162
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 12:33:12";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 16:03:12", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierController.php', '2026-09-13 16:03:12', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/supplierController.php'); -- id=163
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 12:33:30";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 16:03:30", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierController.php', '2026-09-13 16:03:30', '1', 'add', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/supplierController.php?do=add'); -- id=164
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 ('العيسوي حساب محمد', '', '', '5125', '', '0', '1', '2026-09-13 16:03:31', '0', '', '','0','0','','','','','','','','','','0','0','1','5125','0','0'); -- id=6
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 ('6', '0', '5125', '0', 'إضافة مورد جديد', '6', '5125', '2026-09-13 16:03:31', '1', 'supplierController.php', '', '0','', '0','1','1','5125','1','0','5125','5125','0',''); -- id=5
UPDATE client SET clientname = '', clientaddress = '', clientphone = '', clientmobile = '', clientdebt = '', clientdetails = '', conditions = null, clientdate = '', userid = null  , clientareaid = null  ,clientcode = '',dailyentryid = null , rondomtxt = '',clientStoreIds = '', obygyPatientId = '0' , debtLimit='0' , typeclientid='',priceTypeId='0',lastEditUser = '0',card_number = '0',file_faida = '',specialDiscount = '0',specialDiscountVal = '0',file = '',mandobCollectRatio='0',webApiId ='0' ,clientRFID = '',linkedSupplierId = '6',postponeDays='0', studentid='0', taxnumber='', password='',clientTypeForTree='0',treeId='0',husbandNameObgy='',txtNameE='',facility='',delegate='',txtemail='',commercial='',valtaxnumber='',clientaddress2='',country='',delegateid='0',datecustomeraccount='',taxfile='',fileimg='',webStoreType='0',clientaddress3='',tagids='',email_verified='0',email_otp='0',email_otp_expiry='' WHERE clientid = null;
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-09-13 16:03:32'); -- id=424
BEGIN;
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '5125', '5125', '2026-09-13', '1', '0', '0', '2026-09-13 16:03:32','إضافة مورد  ( العيسوي حساب محمد ) ','1','0','0','0','6','supplierController.php?do=edit&id=6'); -- id=5
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('5', '121', '5125', '','0'); -- id=5
UPDATE accountstree SET name = 'حساب وسيط للارصدة الافتتاحية', customName = 'حساب وسيط للارصدة الافتتاحية', customNameEn = 'Paid Capital', nameEn = 'Paid Capital', parent = '119', accountNature = '1', theValue = '-727244', 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';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('5', '424', '5125', '','0'); -- id=5
UPDATE accountstree SET name = 'العيسوي حساب محمد', customName = 'العيسوي حساب محمد', customNameEn = 'العيسوي حساب محمد', nameEn = 'العيسوي حساب محمد', parent = '81', accountNature = '1', theValue = '5125', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-13 16:03:32' WHERE id = '424';
COMMIT;
UPDATE supplier SET suppliername = 'العيسوي حساب محمد', supplieraddress = '', supplierphone = '', suppliercurrentDebt = '5125.00', supplierdetails = '', conditions = '0', userid = '1', supplierdate = '2026-09-13', dailyentryid = '5', category_id = '', typesupplier_id = '',linkedClientId = '0',inUse='0',suppliercode = '',goverareaid='',namepayeecheck = '',suppliermobile='',warrantyOfficer = '',warrantymobile='',sellername = '',sellermobile='',taxnumber = '',supplierTypeForTree='0',treeId='424',sullpierCurrencyid='1',suppliercurrentDebtInCurrency='5125',webApiId='0',shippingDiscountPer='0' WHERE supplierid = '6';
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 12:33:33";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 16:03:33", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierController.php', '2026-09-13 16:03:33', '1', 'sucess', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/supplierController.php?do=sucess'); -- id=165
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 12:33:35";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 16:03:35", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierController.php', '2026-09-13 16:03:35', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/supplierController.php?do=show'); -- id=166
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 12:33:43";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 16:03:43", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierController.php', '2026-09-13 16:03:43', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/supplierController.php'); -- id=167
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 12:33:58";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 16:03:59", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierController.php', '2026-09-13 16:03:59', '1', 'add', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/supplierController.php?do=add'); -- id=168
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 ('طارق شوقي', '', '', '85000', '', '0', '1', '2026-09-13 16:03:59', '0', '', '','0','0','','','','','','','','','','0','0','1','85000','0','0'); -- id=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', '0', '85000', '0', 'إضافة مورد جديد', '7', '85000', '2026-09-13 16:03:59', '1', 'supplierController.php', '', '0','', '0','1','1','85000','1','0','85000','85000','0',''); -- id=6
UPDATE client SET clientname = '', clientaddress = '', clientphone = '', clientmobile = '', clientdebt = '', clientdetails = '', conditions = null, clientdate = '', userid = null  , clientareaid = null  ,clientcode = '',dailyentryid = null , rondomtxt = '',clientStoreIds = '', obygyPatientId = '0' , debtLimit='0' , typeclientid='',priceTypeId='0',lastEditUser = '0',card_number = '0',file_faida = '',specialDiscount = '0',specialDiscountVal = '0',file = '',mandobCollectRatio='0',webApiId ='0' ,clientRFID = '',linkedSupplierId = '7',postponeDays='0', studentid='0', taxnumber='', password='',clientTypeForTree='0',treeId='0',husbandNameObgy='',txtNameE='',facility='',delegate='',txtemail='',commercial='',valtaxnumber='',clientaddress2='',country='',delegateid='0',datecustomeraccount='',taxfile='',fileimg='',webStoreType='0',clientaddress3='',tagids='',email_verified='0',email_otp='0',email_otp_expiry='' WHERE clientid = null;
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-09-13 16:04:00'); -- id=425
BEGIN;
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '85000', '85000', '2026-09-13', '1', '0', '0', '2026-09-13 16:04:00','إضافة مورد  ( طارق شوقي ) ','1','0','0','0','7','supplierController.php?do=edit&id=7'); -- id=6
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('6', '121', '85000', '','0'); -- id=6
UPDATE accountstree SET name = 'حساب وسيط للارصدة الافتتاحية', customName = 'حساب وسيط للارصدة الافتتاحية', customNameEn = 'Paid Capital', nameEn = 'Paid Capital', parent = '119', accountNature = '1', theValue = '-812244', 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';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('6', '425', '85000', '','0'); -- id=6
UPDATE accountstree SET name = 'طارق شوقي', customName = 'طارق شوقي', customNameEn = 'طارق شوقي', nameEn = 'طارق شوقي', parent = '81', accountNature = '1', theValue = '85000', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-13 16:04:00' WHERE id = '425';
COMMIT;
UPDATE supplier SET suppliername = 'طارق شوقي', supplieraddress = '', supplierphone = '', suppliercurrentDebt = '85000.00', supplierdetails = '', conditions = '0', userid = '1', supplierdate = '2026-09-13', dailyentryid = '6', category_id = '', typesupplier_id = '',linkedClientId = '0',inUse='0',suppliercode = '',goverareaid='',namepayeecheck = '',suppliermobile='',warrantyOfficer = '',warrantymobile='',sellername = '',sellermobile='',taxnumber = '',supplierTypeForTree='0',treeId='425',sullpierCurrencyid='1',suppliercurrentDebtInCurrency='85000',webApiId='0',shippingDiscountPer='0' WHERE supplierid = '7';
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 12:34:01";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 16:04:01", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierController.php', '2026-09-13 16:04:01', '1', 'sucess', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/supplierController.php?do=sucess'); -- id=169
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 12:34:03";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 16:04:03", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierController.php', '2026-09-13 16:04:03', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/supplierController.php?do=show'); -- id=170
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 12:34:48";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 16:04:48", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-09-13 16:04:48', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productController.php'); -- id=171
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 12:35:46";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 16:05:46", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-09-13 16:05:46', '1', 'add', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productController.php?do=add'); -- id=172
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 ('متر سلك 10 ملي سعودي','','10','80','88','88','88','2026-09-13','0','1','0','','0','0','0','0','0','80','80','80','80','80','0','10','0','0','.','0','0','0','80','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','80','80','0','0','0','0','0','0','0','0','0','0','0','0','-1','0','','80','0','0','0','0','0','0','','','0','0','0','0'); -- id=2
UPDATE product SET productName = 'متر سلك 10 ملي سعودي', productDescription = '', productCatId = '10', productBuyPrice = '80', productSellAllPrice = '88', productSellUnitPrice = '88', productSellHalfPrice = '88', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '0', parcode = '00002',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '80',lastbuyprice_withDiscount = '80',meanbuyprice = '80',meanbuyprice_withDiscount = '80' , productbuypricereal = '80' , buypricereal_precentage = '0' , buytotal_precentage = '10' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='80',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='80',meanbuyprice_withTax='80',price4='0',price5='0',price6='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='80',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2';
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', '2', '1.00', '2026-09-13', '1', '0','0000201','88','88','88','80','','0','0','0','0','0','0','0','0','0','0'); -- id=2
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2', '1', '150', '1', '2026-09-13'); -- id=2
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2', '1', '150', '0', '2', 'إضافة منتج', 'productController.php', '0', '150', '1', '2026-09-13','0','0'); -- id=3
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2, 1,'2026-09-13 16:05:47',1)
                ON DUPLICATE KEY UPDATE productid = 2, edited = 1, sysdate = '2026-09-13 16:05:47', userid = 1; -- id=2
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '12000', '12000', '2026-09-13', '1', '0', '0', '2026-09-13 16:05:47','إضافة منتج متر سلك 10 ملي سعودي الكمية 150','1','0','0','0','2','productController.php?do=edit&id=2'); -- id=7
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('7', '382', '12000', '','0'); -- id=7
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '60793.75', 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 ('7', '121', '12000', '','0'); -- id=7
UPDATE accountstree SET name = 'حساب وسيط للارصدة الافتتاحية', customName = 'حساب وسيط للارصدة الافتتاحية', customNameEn = 'Paid Capital', nameEn = 'Paid Capital', parent = '119', accountNature = '1', theValue = '-800244', 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 = 'متر سلك 10 ملي سعودي', productDescription = '', productCatId = '10', productBuyPrice = '80.00', productSellAllPrice = '88.00', productSellUnitPrice = '88.00', productSellHalfPrice = '88.00', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '0', parcode = '00002',type ='0', expireDate = '0' , dailyentryId = '7',isService = '0',isOptic = '0',lastbuyprice = '80',lastbuyprice_withDiscount = '80',meanbuyprice = '80',meanbuyprice_withDiscount = '80' , productbuypricereal = '80' , buypricereal_precentage = '0' , buytotal_precentage = '10' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='80',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='80',meanbuyprice_withTax='80',price4='0',price5='0',price6='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='80',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 12:35:50";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 16:05:50", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-09-13 16:05:50', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productController.php'); -- id=173
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 14:00:28";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 17:30:28", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-09-13 17:30:28', '1', 'add', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productController.php?do=add'); -- id=174
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 ('مفتاح مفرد اسمر ','','1','34.8','34.9','36','34.9','2026-09-13','0','1','0','','0','0','0','0','0','34.8','34.8','34.8','34.8','34.8','0','0.29','0.29','3.45','.','0','0','0','34.8','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','34.8','34.8','0','0','0','0','0','0','0','0','0','0','0','0','-1','0','','34.8','0','0','0','0','0','0','','','0','0','0','0'); -- id=3
UPDATE product SET productName = 'مفتاح مفرد اسمر ', productDescription = '', productCatId = '1', productBuyPrice = '34.8', productSellAllPrice = '34.9', productSellUnitPrice = '36', productSellHalfPrice = '34.9', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '0', parcode = '00003',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '34.8',lastbuyprice_withDiscount = '34.8',meanbuyprice = '34.8',meanbuyprice_withDiscount = '34.8' , productbuypricereal = '34.8' , buypricereal_precentage = '0' , buytotal_precentage = '0.29' , buyhalf_precentage = '0.29' , buypart_precentage = '3.45',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='34.8',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='34.8',meanbuyprice_withTax='34.8',price4='0',price5='0',price6='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='34.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 = '3';
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', '3', '1.00', '2026-09-13', '1', '0','0000301','34.9','34.9','36','34.8','','0','0','0','0','0','0','0','0','0','0'); -- id=3
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('3', '1', '1810', '1', '2026-09-13'); -- id=3
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('3', '1', '1810', '0', '3', 'إضافة منتج', 'productController.php', '0', '1810', '1', '2026-09-13','0','0'); -- id=4
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (3, 1,'2026-09-13 17:30:29',1)
                ON DUPLICATE KEY UPDATE productid = 3, edited = 1, sysdate = '2026-09-13 17:30:29', userid = 1; -- id=3
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '62988', '62988', '2026-09-13', '1', '0', '0', '2026-09-13 17:30:29','إضافة منتج مفتاح مفرد اسمر  الكمية 1810','1','0','0','0','3','productController.php?do=edit&id=3'); -- id=8
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('8', '382', '62988', '','0'); -- id=8
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '123781.75', 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 ('8', '121', '62988', '','0'); -- id=8
UPDATE accountstree SET name = 'حساب وسيط للارصدة الافتتاحية', customName = 'حساب وسيط للارصدة الافتتاحية', customNameEn = 'Paid Capital', nameEn = 'Paid Capital', parent = '119', accountNature = '1', theValue = '-737256', 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 = 'مفتاح مفرد اسمر ', productDescription = '', productCatId = '1', productBuyPrice = '34.80', productSellAllPrice = '34.90', productSellUnitPrice = '36.00', productSellHalfPrice = '34.90', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '0', parcode = '00003',type ='0', expireDate = '0' , dailyentryId = '8',isService = '0',isOptic = '0',lastbuyprice = '34.8',lastbuyprice_withDiscount = '34.8',meanbuyprice = '34.8',meanbuyprice_withDiscount = '34.8' , productbuypricereal = '34.8' , buypricereal_precentage = '0' , buytotal_precentage = '0.29' , buyhalf_precentage = '0.29' , buypart_precentage = '3.45',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='34.8',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='34.8',meanbuyprice_withTax='34.8',price4='0',price5='0',price6='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='34.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 = '3';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 14:00:32";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 17:30:32", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-09-13 17:30:32', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productController.php'); -- id=175
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 14:00:43";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 17:30:43", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-09-13 17:30:43', '1', 'addsellBill', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=176
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 14:00:55";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 17:30:55", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-09-13 17:30:55', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productController.php'); -- id=177
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 14:27:39";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 17:57:39", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-09-13 17:57:39', '1', 'add', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productController.php?do=add'); -- id=178
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 ('بريزه مفرد اسمر','','1','34.8','34.9','36','34.9','2026-09-13','0','1','1000','','0','0','0','0','0','34.8','34.8','34.8','34.8','34.8','0','0.29','0.29','3.45','.','0','0','0','34.8','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','34.8','34.8','0','0','0','0','0','0','0','0','0','0','0','0','-1','0','','34.8','0','0','0','0','0','0','','','0','0','0','0'); -- id=4
UPDATE product SET productName = 'بريزه مفرد اسمر', productDescription = '', productCatId = '1', productBuyPrice = '34.8', productSellAllPrice = '34.9', productSellUnitPrice = '36', productSellHalfPrice = '34.9', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '1000', parcode = '00004',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '34.8',lastbuyprice_withDiscount = '34.8',meanbuyprice = '34.8',meanbuyprice_withDiscount = '34.8' , productbuypricereal = '34.8' , buypricereal_precentage = '0' , buytotal_precentage = '0.29' , buyhalf_precentage = '0.29' , buypart_precentage = '3.45',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='34.8',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='34.8',meanbuyprice_withTax='34.8',price4='0',price5='0',price6='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='34.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 = '4';
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', '4', '1.00', '2026-09-13', '1', '0','0000401','34.9','34.9','36','34.8','','0','0','0','0','0','0','0','0','0','0'); -- id=4
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('4', '1', '2143', '1', '2026-09-13'); -- id=4
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('4', '1', '2143', '0', '4', 'إضافة منتج', 'productController.php', '0', '2143', '1', '2026-09-13','0','0'); -- id=5
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (4, 1,'2026-09-13 17:57:40',1)
                ON DUPLICATE KEY UPDATE productid = 4, edited = 1, sysdate = '2026-09-13 17:57:40', userid = 1; -- id=4
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '74576.4', '74576.4', '2026-09-13', '1', '0', '0', '2026-09-13 17:57:40','إضافة منتج بريزه مفرد اسمر الكمية 2143','1','0','0','0','4','productController.php?do=edit&id=4'); -- id=9
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('9', '382', '74576.4', '','0'); -- id=9
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '198358.15', 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 ('9', '121', '74576.4', '','0'); -- id=9
UPDATE accountstree SET name = 'حساب وسيط للارصدة الافتتاحية', customName = 'حساب وسيط للارصدة الافتتاحية', customNameEn = 'Paid Capital', nameEn = 'Paid Capital', parent = '119', accountNature = '1', theValue = '-662679.6', 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 = 'بريزه مفرد اسمر', productDescription = '', productCatId = '1', productBuyPrice = '34.80', productSellAllPrice = '34.90', productSellUnitPrice = '36.00', productSellHalfPrice = '34.90', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '1000', parcode = '00004',type ='0', expireDate = '0' , dailyentryId = '9',isService = '0',isOptic = '0',lastbuyprice = '34.8',lastbuyprice_withDiscount = '34.8',meanbuyprice = '34.8',meanbuyprice_withDiscount = '34.8' , productbuypricereal = '34.8' , buypricereal_precentage = '0' , buytotal_precentage = '0.29' , buyhalf_precentage = '0.29' , buypart_precentage = '3.45',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='34.8',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='34.8',meanbuyprice_withTax='34.8',price4='0',price5='0',price6='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='34.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 = '4';
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 ('سداده اسمر ','','1','10.55','10.65','10.95','10.65','2026-09-13','0','1','500','','0','0','0','0','0','10.55','10.55','10.55','10.55','10.55','0','0.95','0.95','3.79','.','0','0','0','10.55','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','10.55','10.55','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','10.55','0','0','0','0','0','0','','','0','0','0','0'); -- id=5
UPDATE product SET productName = 'سداده اسمر ', productDescription = '', productCatId = '1', productBuyPrice = '10.55', productSellAllPrice = '10.65', productSellUnitPrice = '10.95', productSellHalfPrice = '10.65', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '500', parcode = '00005',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '10.55',lastbuyprice_withDiscount = '10.55',meanbuyprice = '10.55',meanbuyprice_withDiscount = '10.55' , productbuypricereal = '10.55' , buypricereal_precentage = '0' , buytotal_precentage = '0.95' , buyhalf_precentage = '0.95' , buypart_precentage = '3.79',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='10.55',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='10.55',meanbuyprice_withTax='10.55',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='10.55',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '5';
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', '5', '1.00', '2026-09-13', '1', '0','0000501','10.65','10.65','10.95','10.55','','0','0','0','0','0','0','0','0','0','0'); -- id=5
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('5', '1', '2080', '1', '2026-09-13'); -- id=5
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('5', '1', '2080', '0', '5', 'إضافة منتج', 'productController.php', '0', '2080', '1', '2026-09-13','0','0'); -- id=6
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (5, 1,'2026-09-13 17:57:43',1)
                ON DUPLICATE KEY UPDATE productid = 5, edited = 1, sysdate = '2026-09-13 17:57:43', userid = 1; -- id=5
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '21944', '21944', '2026-09-13', '1', '0', '0', '2026-09-13 17:57:43','إضافة منتج سداده اسمر  الكمية 2080','1','0','0','0','5','productController.php?do=edit&id=5'); -- id=10
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('10', '382', '21944', '','0'); -- id=10
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '220302.15', 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 ('10', '121', '21944', '','0'); -- id=10
UPDATE accountstree SET name = 'حساب وسيط للارصدة الافتتاحية', customName = 'حساب وسيط للارصدة الافتتاحية', customNameEn = 'Paid Capital', nameEn = 'Paid Capital', parent = '119', accountNature = '1', theValue = '-640735.6', 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 = 'سداده اسمر ', productDescription = '', productCatId = '1', productBuyPrice = '10.55', productSellAllPrice = '10.65', productSellUnitPrice = '10.95', productSellHalfPrice = '10.65', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '500', parcode = '00005',type ='0', expireDate = '0' , dailyentryId = '10',isService = '0',isOptic = '0',lastbuyprice = '10.55',lastbuyprice_withDiscount = '10.55',meanbuyprice = '10.55',meanbuyprice_withDiscount = '10.55' , productbuypricereal = '10.55' , buypricereal_precentage = '0' , buytotal_precentage = '0.95' , buyhalf_precentage = '0.95' , buypart_precentage = '3.79',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='10.55',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='10.55',meanbuyprice_withTax='10.55',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='10.55',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '5';
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 ('بريزه ام كي اسمر ','','1','105','106','109','106','2026-09-13','0','1','40','','0','0','0','0','0','105','105','105','105','105','0','0.95','0.95','3.81','.','0','0','0','105','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','105','105','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','105','0','0','0','0','0','0','','','0','0','0','0'); -- id=6
UPDATE product SET productName = 'بريزه ام كي اسمر ', productDescription = '', productCatId = '1', productBuyPrice = '105', productSellAllPrice = '106', productSellUnitPrice = '109', productSellHalfPrice = '106', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '40', parcode = '00006',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '105',lastbuyprice_withDiscount = '105',meanbuyprice = '105',meanbuyprice_withDiscount = '105' , productbuypricereal = '105' , buypricereal_precentage = '0' , buytotal_precentage = '0.95' , buyhalf_precentage = '0.95' , buypart_precentage = '3.81',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='105',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='105',meanbuyprice_withTax='105',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='105',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '6';
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', '6', '1.00', '2026-09-13', '1', '0','0000601','106','106','109','105','','0','0','0','0','0','0','0','0','0','0'); -- id=6
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('6', '1', '197', '1', '2026-09-13'); -- id=6
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('6', '1', '197', '0', '6', 'إضافة منتج', 'productController.php', '0', '197', '1', '2026-09-13','0','0'); -- id=7
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (6, 1,'2026-09-13 17:57:45',1)
                ON DUPLICATE KEY UPDATE productid = 6, edited = 1, sysdate = '2026-09-13 17:57:45', userid = 1; -- id=6
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '20685', '20685', '2026-09-13', '1', '0', '0', '2026-09-13 17:57:45','إضافة منتج بريزه ام كي اسمر  الكمية 197','1','0','0','0','6','productController.php?do=edit&id=6'); -- id=11
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('11', '382', '20685', '','0'); -- id=11
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '240987.15', 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 ('11', '121', '20685', '','0'); -- id=11
UPDATE accountstree SET name = 'حساب وسيط للارصدة الافتتاحية', customName = 'حساب وسيط للارصدة الافتتاحية', customNameEn = 'Paid Capital', nameEn = 'Paid Capital', parent = '119', accountNature = '1', theValue = '-620050.6', 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 = 'بريزه ام كي اسمر ', productDescription = '', productCatId = '1', productBuyPrice = '105.00', productSellAllPrice = '106.00', productSellUnitPrice = '109.00', productSellHalfPrice = '106.00', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '40', parcode = '00006',type ='0', expireDate = '0' , dailyentryId = '11',isService = '0',isOptic = '0',lastbuyprice = '105',lastbuyprice_withDiscount = '105',meanbuyprice = '105',meanbuyprice_withDiscount = '105' , productbuypricereal = '105' , buypricereal_precentage = '0' , buytotal_precentage = '0.95' , buyhalf_precentage = '0.95' , buypart_precentage = '3.81',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='105',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='105',meanbuyprice_withTax='105',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='105',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '6';
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 ('قطعه تلفون اسمر ','','1','84.46','84.5','87','84.5','2026-09-13','0','1','40','','0','0','0','0','0','84.46','84.46','84.46','84.46','84.46','0','0.05','0.05','3.01','.','0','0','0','84.46','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','84.46','84.46','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','84.46','0','0','0','0','0','0','','','0','0','0','0'); -- id=7
UPDATE product SET productName = 'قطعه تلفون اسمر ', productDescription = '', productCatId = '1', productBuyPrice = '84.46', productSellAllPrice = '84.5', productSellUnitPrice = '87', productSellHalfPrice = '84.5', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '40', parcode = '00007',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '84.46',lastbuyprice_withDiscount = '84.46',meanbuyprice = '84.46',meanbuyprice_withDiscount = '84.46' , productbuypricereal = '84.46' , buypricereal_precentage = '0' , buytotal_precentage = '0.05' , buyhalf_precentage = '0.05' , buypart_precentage = '3.01',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='84.46',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='84.46',meanbuyprice_withTax='84.46',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='84.46',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '7';
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', '7', '1.00', '2026-09-13', '1', '0','0000701','84.5','84.5','87','84.46','','0','0','0','0','0','0','0','0','0','0'); -- id=7
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('7', '1', '155', '1', '2026-09-13'); -- id=7
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('7', '1', '155', '0', '7', 'إضافة منتج', 'productController.php', '0', '155', '1', '2026-09-13','0','0'); -- id=8
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (7, 1,'2026-09-13 17:57:47',1)
                ON DUPLICATE KEY UPDATE productid = 7, edited = 1, sysdate = '2026-09-13 17:57:47', userid = 1; -- id=7
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '13091.3', '13091.3', '2026-09-13', '1', '0', '0', '2026-09-13 17:57:47','إضافة منتج قطعه تلفون اسمر  الكمية 155','1','0','0','0','7','productController.php?do=edit&id=7'); -- id=12
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('12', '382', '13091.3', '','0'); -- id=12
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '254078.45', 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 ('12', '121', '13091.3', '','0'); -- id=12
UPDATE accountstree SET name = 'حساب وسيط للارصدة الافتتاحية', customName = 'حساب وسيط للارصدة الافتتاحية', customNameEn = 'Paid Capital', nameEn = 'Paid Capital', parent = '119', accountNature = '1', theValue = '-606959.3', 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 = 'قطعه تلفون اسمر ', productDescription = '', productCatId = '1', productBuyPrice = '84.46', productSellAllPrice = '84.50', productSellUnitPrice = '87.00', productSellHalfPrice = '84.50', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '40', parcode = '00007',type ='0', expireDate = '0' , dailyentryId = '12',isService = '0',isOptic = '0',lastbuyprice = '84.46',lastbuyprice_withDiscount = '84.46',meanbuyprice = '84.46',meanbuyprice_withDiscount = '84.46' , productbuypricereal = '84.46' , buypricereal_precentage = '0' , buytotal_precentage = '0.05' , buyhalf_precentage = '0.05' , buypart_precentage = '3.01',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='84.46',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='84.46',meanbuyprice_withTax='84.46',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='84.46',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '7';
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 ('زر جرس عريض اسمر ','','1','100','101','105','101','2026-09-13','0','1','10','','0','0','0','0','0','100','100','100','100','100','0','1','1','5','.','0','0','0','100','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','100','100','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','100','0','0','0','0','0','0','','','0','0','0','0'); -- id=8
UPDATE product SET productName = 'زر جرس عريض اسمر ', productDescription = '', productCatId = '1', productBuyPrice = '100', productSellAllPrice = '101', productSellUnitPrice = '105', productSellHalfPrice = '101', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '10', parcode = '00008',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '100',lastbuyprice_withDiscount = '100',meanbuyprice = '100',meanbuyprice_withDiscount = '100' , productbuypricereal = '100' , buypricereal_precentage = '0' , buytotal_precentage = '1' , buyhalf_precentage = '1' , buypart_precentage = '5',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='100',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='100',meanbuyprice_withTax='100',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='100',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '8';
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', '8', '1.00', '2026-09-13', '1', '0','0000801','101','101','105','100','','0','0','0','0','0','0','0','0','0','0'); -- id=8
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('8', '1', '36', '1', '2026-09-13'); -- id=8
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('8', '1', '36', '0', '8', 'إضافة منتج', 'productController.php', '0', '36', '1', '2026-09-13','0','0'); -- id=9
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (8, 1,'2026-09-13 17:57:49',1)
                ON DUPLICATE KEY UPDATE productid = 8, edited = 1, sysdate = '2026-09-13 17:57:49', userid = 1; -- id=8
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '3600', '3600', '2026-09-13', '1', '0', '0', '2026-09-13 17:57:49','إضافة منتج زر جرس عريض اسمر  الكمية 36','1','0','0','0','8','productController.php?do=edit&id=8'); -- id=13
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('13', '382', '3600', '','0'); -- id=13
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '257678.45', 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 ('13', '121', '3600', '','0'); -- id=13
UPDATE accountstree SET name = 'حساب وسيط للارصدة الافتتاحية', customName = 'حساب وسيط للارصدة الافتتاحية', customNameEn = 'Paid Capital', nameEn = 'Paid Capital', parent = '119', accountNature = '1', theValue = '-603359.3', 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 = 'زر جرس عريض اسمر ', productDescription = '', productCatId = '1', productBuyPrice = '100.00', productSellAllPrice = '101.00', productSellUnitPrice = '105.00', productSellHalfPrice = '101.00', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '10', parcode = '00008',type ='0', expireDate = '0' , dailyentryId = '13',isService = '0',isOptic = '0',lastbuyprice = '100',lastbuyprice_withDiscount = '100',meanbuyprice = '100',meanbuyprice_withDiscount = '100' , productbuypricereal = '100' , buypricereal_precentage = '0' , buytotal_precentage = '1' , buyhalf_precentage = '1' , buypart_precentage = '5',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='100',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='100',meanbuyprice_withTax='100',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='100',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '8';
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 ('قطعه طواريء ','','1','306','307','319','307','2026-09-13','0','1','15','','0','0','0','0','0','306','306','306','306','306','0','0.33','0.33','4.25','.','0','0','0','306','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','306','306','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','306','0','0','0','0','0','0','','','0','0','0','0'); -- id=9
UPDATE product SET productName = 'قطعه طواريء ', productDescription = '', productCatId = '1', productBuyPrice = '306', productSellAllPrice = '307', productSellUnitPrice = '319', productSellHalfPrice = '307', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '15', parcode = '00009',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '306',lastbuyprice_withDiscount = '306',meanbuyprice = '306',meanbuyprice_withDiscount = '306' , productbuypricereal = '306' , buypricereal_precentage = '0' , buytotal_precentage = '0.33' , buyhalf_precentage = '0.33' , buypart_precentage = '4.25',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='306',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='306',meanbuyprice_withTax='306',price4='0',price5='0',price6='0',price7='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 = '9';
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', '9', '1.00', '2026-09-13', '1', '0','0000901','307','307','319','306','','0','0','0','0','0','0','0','0','0','0'); -- id=9
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('9', '1', '54', '1', '2026-09-13'); -- id=9
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('9', '1', '54', '0', '9', 'إضافة منتج', 'productController.php', '0', '54', '1', '2026-09-13','0','0'); -- id=10
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (9, 1,'2026-09-13 17:57:51',1)
                ON DUPLICATE KEY UPDATE productid = 9, edited = 1, sysdate = '2026-09-13 17:57:51', userid = 1; -- id=9
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '16524', '16524', '2026-09-13', '1', '0', '0', '2026-09-13 17:57:51','إضافة منتج قطعه طواريء  الكمية 54','1','0','0','0','9','productController.php?do=edit&id=9'); -- id=14
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('14', '382', '16524', '','0'); -- id=14
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '274202.45', 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 ('14', '121', '16524', '','0'); -- id=14
UPDATE accountstree SET name = 'حساب وسيط للارصدة الافتتاحية', customName = 'حساب وسيط للارصدة الافتتاحية', customNameEn = 'Paid Capital', nameEn = 'Paid Capital', parent = '119', accountNature = '1', theValue = '-586835.3', 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 = 'قطعه طواريء ', productDescription = '', productCatId = '1', productBuyPrice = '306.00', productSellAllPrice = '307.00', productSellUnitPrice = '319.00', productSellHalfPrice = '307.00', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '15', parcode = '00009',type ='0', expireDate = '0' , dailyentryId = '14',isService = '0',isOptic = '0',lastbuyprice = '306',lastbuyprice_withDiscount = '306',meanbuyprice = '306',meanbuyprice_withDiscount = '306' , productbuypricereal = '306' , buypricereal_precentage = '0' , buytotal_precentage = '0.33' , buyhalf_precentage = '0.33' , buypart_precentage = '4.25',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='306',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='306',meanbuyprice_withTax='306',price4='0',price5='0',price6='0',price7='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 = '9';
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 ('مفتاح تكيف 45 امبير اسمر ','','1','237','239','246.5','239','2026-09-13','0','1','12','','0','0','0','0','0','237','237','237','237','237','0','0.84','0.84','4.01','.','0','0','0','237','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','237','237','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','237','0','0','0','0','0','0','','','0','0','0','0'); -- id=10
UPDATE product SET productName = 'مفتاح تكيف 45 امبير اسمر ', productDescription = '', productCatId = '1', productBuyPrice = '237', productSellAllPrice = '239', productSellUnitPrice = '246.5', productSellHalfPrice = '239', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '12', parcode = '00010',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '237',lastbuyprice_withDiscount = '237',meanbuyprice = '237',meanbuyprice_withDiscount = '237' , productbuypricereal = '237' , buypricereal_precentage = '0' , buytotal_precentage = '0.84' , buyhalf_precentage = '0.84' , buypart_precentage = '4.01',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='237',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='237',meanbuyprice_withTax='237',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='237',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '10';
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', '10', '1.00', '2026-09-13', '1', '0','0001001','239','239','246.5','237','','0','0','0','0','0','0','0','0','0','0'); -- id=10
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('10', '1', '62', '1', '2026-09-13'); -- id=10
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('10', '1', '62', '0', '10', 'إضافة منتج', 'productController.php', '0', '62', '1', '2026-09-13','0','0'); -- id=11
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (10, 1,'2026-09-13 17:57:53',1)
                ON DUPLICATE KEY UPDATE productid = 10, edited = 1, sysdate = '2026-09-13 17:57:53', userid = 1; -- id=10
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '14694', '14694', '2026-09-13', '1', '0', '0', '2026-09-13 17:57:53','إضافة منتج مفتاح تكيف 45 امبير اسمر  الكمية 62','1','0','0','0','10','productController.php?do=edit&id=10'); -- id=15
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('15', '382', '14694', '','0'); -- id=15
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '288896.45', 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 ('15', '121', '14694', '','0'); -- id=15
UPDATE accountstree SET name = 'حساب وسيط للارصدة الافتتاحية', customName = 'حساب وسيط للارصدة الافتتاحية', customNameEn = 'Paid Capital', nameEn = 'Paid Capital', parent = '119', accountNature = '1', theValue = '-572141.3', 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 = 'مفتاح تكيف 45 امبير اسمر ', productDescription = '', productCatId = '1', productBuyPrice = '237.00', productSellAllPrice = '239.00', productSellUnitPrice = '246.50', productSellHalfPrice = '239.00', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '12', parcode = '00010',type ='0', expireDate = '0' , dailyentryId = '15',isService = '0',isOptic = '0',lastbuyprice = '237',lastbuyprice_withDiscount = '237',meanbuyprice = '237',meanbuyprice_withDiscount = '237' , productbuypricereal = '237' , buypricereal_precentage = '0' , buytotal_precentage = '0.84' , buyhalf_precentage = '0.84' , buypart_precentage = '4.01',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='237',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='237',meanbuyprice_withTax='237',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='237',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '10';
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 ('بريزه مجوفه اسمر ','','1','105','106','109','106','2026-09-13','0','1','20','','0','0','0','0','0','105','105','105','105','105','0','0.95','0.95','3.81','.','0','0','0','105','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','105','105','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','105','0','0','0','0','0','0','','','0','0','0','0'); -- id=11
UPDATE product SET productName = 'بريزه مجوفه اسمر ', productDescription = '', productCatId = '1', productBuyPrice = '105', productSellAllPrice = '106', productSellUnitPrice = '109', productSellHalfPrice = '106', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '20', parcode = '00011',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '105',lastbuyprice_withDiscount = '105',meanbuyprice = '105',meanbuyprice_withDiscount = '105' , productbuypricereal = '105' , buypricereal_precentage = '0' , buytotal_precentage = '0.95' , buyhalf_precentage = '0.95' , buypart_precentage = '3.81',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='105',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='105',meanbuyprice_withTax='105',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='105',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '11';
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', '11', '1.00', '2026-09-13', '1', '0','0001101','106','106','109','105','','0','0','0','0','0','0','0','0','0','0'); -- id=11
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('11', '1', '88', '1', '2026-09-13'); -- id=11
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('11', '1', '88', '0', '11', 'إضافة منتج', 'productController.php', '0', '88', '1', '2026-09-13','0','0'); -- id=12
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (11, 1,'2026-09-13 17:57:55',1)
                ON DUPLICATE KEY UPDATE productid = 11, edited = 1, sysdate = '2026-09-13 17:57:55', userid = 1; -- id=11
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '9240', '9240', '2026-09-13', '1', '0', '0', '2026-09-13 17:57:55','إضافة منتج بريزه مجوفه اسمر  الكمية 88','1','0','0','0','11','productController.php?do=edit&id=11'); -- id=16
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('16', '382', '9240', '','0'); -- id=16
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '298136.45', 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 ('16', '121', '9240', '','0'); -- id=16
UPDATE accountstree SET name = 'حساب وسيط للارصدة الافتتاحية', customName = 'حساب وسيط للارصدة الافتتاحية', customNameEn = 'Paid Capital', nameEn = 'Paid Capital', parent = '119', accountNature = '1', theValue = '-562901.3', 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 = 'بريزه مجوفه اسمر ', productDescription = '', productCatId = '1', productBuyPrice = '105.00', productSellAllPrice = '106.00', productSellUnitPrice = '109.00', productSellHalfPrice = '106.00', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '20', parcode = '00011',type ='0', expireDate = '0' , dailyentryId = '16',isService = '0',isOptic = '0',lastbuyprice = '105',lastbuyprice_withDiscount = '105',meanbuyprice = '105',meanbuyprice_withDiscount = '105' , productbuypricereal = '105' , buypricereal_precentage = '0' , buytotal_precentage = '0.95' , buyhalf_precentage = '0.95' , buypart_precentage = '3.81',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='105',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='105',meanbuyprice_withTax='105',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='105',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '11';
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 ('مفتاح ديفاتيري اسمر ','','1','63','64','66','64','2026-09-13','0','1','36','','0','0','0','0','0','63','63','63','63','63','0','1.59','1.59','4.76','.','0','0','0','63','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','63','63','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','63','0','0','0','0','0','0','','','0','0','0','0'); -- id=12
UPDATE product SET productName = 'مفتاح ديفاتيري اسمر ', productDescription = '', productCatId = '1', productBuyPrice = '63', productSellAllPrice = '64', productSellUnitPrice = '66', productSellHalfPrice = '64', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '36', parcode = '00012',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '63',lastbuyprice_withDiscount = '63',meanbuyprice = '63',meanbuyprice_withDiscount = '63' , productbuypricereal = '63' , buypricereal_precentage = '0' , buytotal_precentage = '1.59' , buyhalf_precentage = '1.59' , buypart_precentage = '4.76',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='63',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='63',meanbuyprice_withTax='63',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='63',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '12';
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', '12', '1.00', '2026-09-13', '1', '0','0001201','64','64','66','63','','0','0','0','0','0','0','0','0','0','0'); -- id=12
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('12', '1', '112', '1', '2026-09-13'); -- id=12
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('12', '1', '112', '0', '12', 'إضافة منتج', 'productController.php', '0', '112', '1', '2026-09-13','0','0'); -- id=13
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (12, 1,'2026-09-13 17:57:57',1)
                ON DUPLICATE KEY UPDATE productid = 12, edited = 1, sysdate = '2026-09-13 17:57:57', userid = 1; -- id=12
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '7056', '7056', '2026-09-13', '1', '0', '0', '2026-09-13 17:57:57','إضافة منتج مفتاح ديفاتيري اسمر  الكمية 112','1','0','0','0','12','productController.php?do=edit&id=12'); -- id=17
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('17', '382', '7056', '','0'); -- id=17
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '305192.45', 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 ('17', '121', '7056', '','0'); -- id=17
UPDATE accountstree SET name = 'حساب وسيط للارصدة الافتتاحية', customName = 'حساب وسيط للارصدة الافتتاحية', customNameEn = 'Paid Capital', nameEn = 'Paid Capital', parent = '119', accountNature = '1', theValue = '-555845.3', 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 = 'مفتاح ديفاتيري اسمر ', productDescription = '', productCatId = '1', productBuyPrice = '63.00', productSellAllPrice = '64.00', productSellUnitPrice = '66.00', productSellHalfPrice = '64.00', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '36', parcode = '00012',type ='0', expireDate = '0' , dailyentryId = '17',isService = '0',isOptic = '0',lastbuyprice = '63',lastbuyprice_withDiscount = '63',meanbuyprice = '63',meanbuyprice_withDiscount = '63' , productbuypricereal = '63' , buypricereal_precentage = '0' , buytotal_precentage = '1.59' , buyhalf_precentage = '1.59' , buypart_precentage = '4.76',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='63',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='63',meanbuyprice_withTax='63',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='63',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '12';
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 ('جرس قطعه اسمر ','','1','306','308','317.7','308','2026-09-13','0','1','5','','0','0','0','0','0','306','306','306','306','306','0','0.65','0.65','3.82','.','0','0','0','306','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','306','306','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','306','0','0','0','0','0','0','','','0','0','0','0'); -- id=13
UPDATE product SET productName = 'جرس قطعه اسمر ', productDescription = '', productCatId = '1', productBuyPrice = '306', productSellAllPrice = '308', productSellUnitPrice = '317.7', productSellHalfPrice = '308', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '5', parcode = '00013',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '306',lastbuyprice_withDiscount = '306',meanbuyprice = '306',meanbuyprice_withDiscount = '306' , productbuypricereal = '306' , buypricereal_precentage = '0' , buytotal_precentage = '0.65' , buyhalf_precentage = '0.65' , buypart_precentage = '3.82',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='306',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='306',meanbuyprice_withTax='306',price4='0',price5='0',price6='0',price7='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 = '13';
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', '13', '1.00', '2026-09-13', '1', '0','0001301','308','308','317.7','306','','0','0','0','0','0','0','0','0','0','0'); -- id=13
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('13', '1', '22', '1', '2026-09-13'); -- id=13
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('13', '1', '22', '0', '13', 'إضافة منتج', 'productController.php', '0', '22', '1', '2026-09-13','0','0'); -- id=14
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (13, 1,'2026-09-13 17:57:59',1)
                ON DUPLICATE KEY UPDATE productid = 13, edited = 1, sysdate = '2026-09-13 17:57:59', userid = 1; -- id=13
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '6732', '6732', '2026-09-13', '1', '0', '0', '2026-09-13 17:57:59','إضافة منتج جرس قطعه اسمر  الكمية 22','1','0','0','0','13','productController.php?do=edit&id=13'); -- id=18
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('18', '382', '6732', '','0'); -- id=18
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '311924.45', 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 ('18', '121', '6732', '','0'); -- id=18
UPDATE accountstree SET name = 'حساب وسيط للارصدة الافتتاحية', customName = 'حساب وسيط للارصدة الافتتاحية', customNameEn = 'Paid Capital', nameEn = 'Paid Capital', parent = '119', accountNature = '1', theValue = '-549113.3', 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 = 'جرس قطعه اسمر ', productDescription = '', productCatId = '1', productBuyPrice = '306.00', productSellAllPrice = '308.00', productSellUnitPrice = '317.70', productSellHalfPrice = '308.00', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '5', parcode = '00013',type ='0', expireDate = '0' , dailyentryId = '18',isService = '0',isOptic = '0',lastbuyprice = '306',lastbuyprice_withDiscount = '306',meanbuyprice = '306',meanbuyprice_withDiscount = '306' , productbuypricereal = '306' , buypricereal_precentage = '0' , buytotal_precentage = '0.65' , buyhalf_precentage = '0.65' , buypart_precentage = '3.82',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='306',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='306',meanbuyprice_withTax='306',price4='0',price5='0',price6='0',price7='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 = '13';
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 ('لقمه دش اسمر ','','1','47','48','49.9','48','2026-09-13','0','1','40','','0','0','0','0','0','47','47','47','47','47','0','2.13','2.13','6.17','.','0','0','0','47','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','47','47','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','47','0','0','0','0','0','0','','','0','0','0','0'); -- id=14
UPDATE product SET productName = 'لقمه دش اسمر ', productDescription = '', productCatId = '1', productBuyPrice = '47', productSellAllPrice = '48', productSellUnitPrice = '49.9', productSellHalfPrice = '48', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '40', parcode = '00014',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '47',lastbuyprice_withDiscount = '47',meanbuyprice = '47',meanbuyprice_withDiscount = '47' , productbuypricereal = '47' , buypricereal_precentage = '0' , buytotal_precentage = '2.13' , buyhalf_precentage = '2.13' , buypart_precentage = '6.17',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='47',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='47',meanbuyprice_withTax='47',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='47',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '14';
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', '14', '1.00', '2026-09-13', '1', '0','0001401','48','48','49.9','47','','0','0','0','0','0','0','0','0','0','0'); -- id=14
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('14', '1', '101', '1', '2026-09-13'); -- id=14
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('14', '1', '101', '0', '14', 'إضافة منتج', 'productController.php', '0', '101', '1', '2026-09-13','0','0'); -- id=15
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (14, 1,'2026-09-13 17:58:01',1)
                ON DUPLICATE KEY UPDATE productid = 14, edited = 1, sysdate = '2026-09-13 17:58:01', userid = 1; -- id=14
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '4747', '4747', '2026-09-13', '1', '0', '0', '2026-09-13 17:58:01','إضافة منتج لقمه دش اسمر  الكمية 101','1','0','0','0','14','productController.php?do=edit&id=14'); -- id=19
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('19', '382', '4747', '','0'); -- id=19
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '316671.45', 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 ('19', '121', '4747', '','0'); -- id=19
UPDATE accountstree SET name = 'حساب وسيط للارصدة الافتتاحية', customName = 'حساب وسيط للارصدة الافتتاحية', customNameEn = 'Paid Capital', nameEn = 'Paid Capital', parent = '119', accountNature = '1', theValue = '-544366.3', 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 = 'لقمه دش اسمر ', productDescription = '', productCatId = '1', productBuyPrice = '47.00', productSellAllPrice = '48.00', productSellUnitPrice = '49.90', productSellHalfPrice = '48.00', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '40', parcode = '00014',type ='0', expireDate = '0' , dailyentryId = '19',isService = '0',isOptic = '0',lastbuyprice = '47',lastbuyprice_withDiscount = '47',meanbuyprice = '47',meanbuyprice_withDiscount = '47' , productbuypricereal = '47' , buypricereal_precentage = '0' , buytotal_precentage = '2.13' , buyhalf_precentage = '2.13' , buypart_precentage = '6.17',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='47',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='47',meanbuyprice_withTax='47',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='47',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '14';
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 ('لقمه سخان 20 امبير اسمر ','','1','163','165','170','165','2026-09-13','0','1','36','','0','0','0','0','0','163','163','163','163','163','0','1.23','1.23','4.29','.','0','0','0','163','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','163','163','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','163','0','0','0','0','0','0','','','0','0','0','0'); -- id=15
UPDATE product SET productName = 'لقمه سخان 20 امبير اسمر ', productDescription = '', productCatId = '1', productBuyPrice = '163', productSellAllPrice = '165', productSellUnitPrice = '170', productSellHalfPrice = '165', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '36', parcode = '00015',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '163',lastbuyprice_withDiscount = '163',meanbuyprice = '163',meanbuyprice_withDiscount = '163' , productbuypricereal = '163' , buypricereal_precentage = '0' , buytotal_precentage = '1.23' , buyhalf_precentage = '1.23' , buypart_precentage = '4.29',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='163',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='163',meanbuyprice_withTax='163',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='163',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '15';
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', '15', '1.00', '2026-09-13', '1', '0','0001501','165','165','170','163','','0','0','0','0','0','0','0','0','0','0'); -- id=15
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('15', '1', '77', '1', '2026-09-13'); -- id=15
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('15', '1', '77', '0', '15', 'إضافة منتج', 'productController.php', '0', '77', '1', '2026-09-13','0','0'); -- id=16
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (15, 1,'2026-09-13 17:58:03',1)
                ON DUPLICATE KEY UPDATE productid = 15, edited = 1, sysdate = '2026-09-13 17:58:03', userid = 1; -- id=15
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '12551', '12551', '2026-09-13', '1', '0', '0', '2026-09-13 17:58:03','إضافة منتج لقمه سخان 20 امبير اسمر  الكمية 77','1','0','0','0','15','productController.php?do=edit&id=15'); -- id=20
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('20', '382', '12551', '','0'); -- id=20
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '329222.45', 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 ('20', '121', '12551', '','0'); -- id=20
UPDATE accountstree SET name = 'حساب وسيط للارصدة الافتتاحية', customName = 'حساب وسيط للارصدة الافتتاحية', customNameEn = 'Paid Capital', nameEn = 'Paid Capital', parent = '119', accountNature = '1', theValue = '-531815.3', 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 = 'لقمه سخان 20 امبير اسمر ', productDescription = '', productCatId = '1', productBuyPrice = '163.00', productSellAllPrice = '165.00', productSellUnitPrice = '170.00', productSellHalfPrice = '165.00', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '36', parcode = '00015',type ='0', expireDate = '0' , dailyentryId = '20',isService = '0',isOptic = '0',lastbuyprice = '163',lastbuyprice_withDiscount = '163',meanbuyprice = '163',meanbuyprice_withDiscount = '163' , productbuypricereal = '163' , buypricereal_precentage = '0' , buytotal_precentage = '1.23' , buyhalf_precentage = '1.23' , buypart_precentage = '4.29',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='163',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='163',meanbuyprice_withTax='163',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='163',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '15';
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 ('زر جرس مفرد اسمر ','','1','63','64','67','64','2026-09-13','0','1','36','','0','0','0','0','0','63','63','63','63','63','0','1.59','1.59','6.35','.','0','0','0','63','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','63','63','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','63','0','0','0','0','0','0','','','0','0','0','0'); -- id=16
UPDATE product SET productName = 'زر جرس مفرد اسمر ', productDescription = '', productCatId = '1', productBuyPrice = '63', productSellAllPrice = '64', productSellUnitPrice = '67', productSellHalfPrice = '64', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '36', parcode = '00016',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '63',lastbuyprice_withDiscount = '63',meanbuyprice = '63',meanbuyprice_withDiscount = '63' , productbuypricereal = '63' , buypricereal_precentage = '0' , buytotal_precentage = '1.59' , buyhalf_precentage = '1.59' , buypart_precentage = '6.35',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='63',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='63',meanbuyprice_withTax='63',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='63',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '16';
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', '16', '1.00', '2026-09-13', '1', '0','0001601','64','64','67','63','','0','0','0','0','0','0','0','0','0','0'); -- id=16
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('16', '1', '97', '1', '2026-09-13'); -- id=16
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('16', '1', '97', '0', '16', 'إضافة منتج', 'productController.php', '0', '97', '1', '2026-09-13','0','0'); -- id=17
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (16, 1,'2026-09-13 17:58:05',1)
                ON DUPLICATE KEY UPDATE productid = 16, edited = 1, sysdate = '2026-09-13 17:58:05', userid = 1; -- id=16
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '6111', '6111', '2026-09-13', '1', '0', '0', '2026-09-13 17:58:05','إضافة منتج زر جرس مفرد اسمر  الكمية 97','1','0','0','0','16','productController.php?do=edit&id=16'); -- id=21
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('21', '382', '6111', '','0'); -- id=21
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '335333.45', 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 ('21', '121', '6111', '','0'); -- id=21
UPDATE accountstree SET name = 'حساب وسيط للارصدة الافتتاحية', customName = 'حساب وسيط للارصدة الافتتاحية', customNameEn = 'Paid Capital', nameEn = 'Paid Capital', parent = '119', accountNature = '1', theValue = '-525704.3', 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 = 'زر جرس مفرد اسمر ', productDescription = '', productCatId = '1', productBuyPrice = '63.00', productSellAllPrice = '64.00', productSellUnitPrice = '67.00', productSellHalfPrice = '64.00', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '36', parcode = '00016',type ='0', expireDate = '0' , dailyentryId = '21',isService = '0',isOptic = '0',lastbuyprice = '63',lastbuyprice_withDiscount = '63',meanbuyprice = '63',meanbuyprice_withDiscount = '63' , productbuypricereal = '63' , buypricereal_precentage = '0' , buytotal_precentage = '1.59' , buyhalf_precentage = '1.59' , buypart_precentage = '6.35',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='63',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='63',meanbuyprice_withTax='63',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='63',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '16';
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 ('مفتاح مجوز اسمر ','','1','95','96','98.9','96','2026-09-13','0','1','36','','0','0','0','0','0','95','95','95','95','95','0','1.05','1.05','4.11','.','0','0','0','95','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','95','95','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','95','0','0','0','0','0','0','','','0','0','0','0'); -- id=17
UPDATE product SET productName = 'مفتاح مجوز اسمر ', productDescription = '', productCatId = '1', productBuyPrice = '95', productSellAllPrice = '96', productSellUnitPrice = '98.9', productSellHalfPrice = '96', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '36', parcode = '00017',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '95',lastbuyprice_withDiscount = '95',meanbuyprice = '95',meanbuyprice_withDiscount = '95' , productbuypricereal = '95' , buypricereal_precentage = '0' , buytotal_precentage = '1.05' , buyhalf_precentage = '1.05' , buypart_precentage = '4.11',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='95',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='95',meanbuyprice_withTax='95',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='95',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '17';
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', '17', '1.00', '2026-09-13', '1', '0','0001701','96','96','98.9','95','','0','0','0','0','0','0','0','0','0','0'); -- id=17
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('17', '1', '57', '1', '2026-09-13'); -- id=17
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('17', '1', '57', '0', '17', 'إضافة منتج', 'productController.php', '0', '57', '1', '2026-09-13','0','0'); -- id=18
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (17, 1,'2026-09-13 17:58:08',1)
                ON DUPLICATE KEY UPDATE productid = 17, edited = 1, sysdate = '2026-09-13 17:58:08', userid = 1; -- id=17
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '5415', '5415', '2026-09-13', '1', '0', '0', '2026-09-13 17:58:08','إضافة منتج مفتاح مجوز اسمر  الكمية 57','1','0','0','0','17','productController.php?do=edit&id=17'); -- id=22
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('22', '382', '5415', '','0'); -- id=22
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '340748.45', 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 ('22', '121', '5415', '','0'); -- id=22
UPDATE accountstree SET name = 'حساب وسيط للارصدة الافتتاحية', customName = 'حساب وسيط للارصدة الافتتاحية', customNameEn = 'Paid Capital', nameEn = 'Paid Capital', parent = '119', accountNature = '1', theValue = '-520289.3', 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 = 'مفتاح مجوز اسمر ', productDescription = '', productCatId = '1', productBuyPrice = '95.00', productSellAllPrice = '96.00', productSellUnitPrice = '98.90', productSellHalfPrice = '96.00', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '36', parcode = '00017',type ='0', expireDate = '0' , dailyentryId = '22',isService = '0',isOptic = '0',lastbuyprice = '95',lastbuyprice_withDiscount = '95',meanbuyprice = '95',meanbuyprice_withDiscount = '95' , productbuypricereal = '95' , buypricereal_precentage = '0' , buytotal_precentage = '1.05' , buyhalf_precentage = '1.05' , buypart_precentage = '4.11',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='95',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='95',meanbuyprice_withTax='95',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='95',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '17';
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 ('لقمه نت اسمر ','','1','136','137','144','137','2026-09-13','0','1','10','','0','0','0','0','0','136','136','136','136','136','0','0.74','0.74','5.88','.','0','0','0','136','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','136','136','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','136','0','0','0','0','0','0','','','0','0','0','0'); -- id=18
UPDATE product SET productName = 'لقمه نت اسمر ', productDescription = '', productCatId = '1', productBuyPrice = '136', productSellAllPrice = '137', productSellUnitPrice = '144', productSellHalfPrice = '137', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '10', parcode = '00018',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '136',lastbuyprice_withDiscount = '136',meanbuyprice = '136',meanbuyprice_withDiscount = '136' , productbuypricereal = '136' , buypricereal_precentage = '0' , buytotal_precentage = '0.74' , buyhalf_precentage = '0.74' , buypart_precentage = '5.88',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='136',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='136',meanbuyprice_withTax='136',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='136',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '18';
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', '18', '1.00', '2026-09-13', '1', '0','0001801','137','137','144','136','','0','0','0','0','0','0','0','0','0','0'); -- id=18
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('18', '1', '24', '1', '2026-09-13'); -- id=18
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('18', '1', '24', '0', '18', 'إضافة منتج', 'productController.php', '0', '24', '1', '2026-09-13','0','0'); -- id=19
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (18, 1,'2026-09-13 17:58:10',1)
                ON DUPLICATE KEY UPDATE productid = 18, edited = 1, sysdate = '2026-09-13 17:58:10', userid = 1; -- id=18
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '3264', '3264', '2026-09-13', '1', '0', '0', '2026-09-13 17:58:10','إضافة منتج لقمه نت اسمر  الكمية 24','1','0','0','0','18','productController.php?do=edit&id=18'); -- id=23
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('23', '382', '3264', '','0'); -- id=23
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '344012.45', 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 ('23', '121', '3264', '','0'); -- id=23
UPDATE accountstree SET name = 'حساب وسيط للارصدة الافتتاحية', customName = 'حساب وسيط للارصدة الافتتاحية', customNameEn = 'Paid Capital', nameEn = 'Paid Capital', parent = '119', accountNature = '1', theValue = '-517025.3', 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 = 'لقمه نت اسمر ', productDescription = '', productCatId = '1', productBuyPrice = '136.00', productSellAllPrice = '137.00', productSellUnitPrice = '144.00', productSellHalfPrice = '137.00', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '10', parcode = '00018',type ='0', expireDate = '0' , dailyentryId = '23',isService = '0',isOptic = '0',lastbuyprice = '136',lastbuyprice_withDiscount = '136',meanbuyprice = '136',meanbuyprice_withDiscount = '136' , productbuypricereal = '136' , buypricereal_precentage = '0' , buytotal_precentage = '0.74' , buyhalf_precentage = '0.74' , buypart_precentage = '5.88',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='136',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='136',meanbuyprice_withTax='136',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='136',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '18';
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 ('لقمه usb اسمر ','','1','496','499','514.9','499','2026-09-13','0','1','5','','0','0','0','0','0','496','496','496','496','496','0','0.6','0.6','3.81','.','0','0','0','496','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','496','496','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','496','0','0','0','0','0','0','','','0','0','0','0'); -- id=19
UPDATE product SET productName = 'لقمه usb اسمر ', productDescription = '', productCatId = '1', productBuyPrice = '496', productSellAllPrice = '499', productSellUnitPrice = '514.9', productSellHalfPrice = '499', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '5', parcode = '00019',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '496',lastbuyprice_withDiscount = '496',meanbuyprice = '496',meanbuyprice_withDiscount = '496' , productbuypricereal = '496' , buypricereal_precentage = '0' , buytotal_precentage = '0.6' , buyhalf_precentage = '0.6' , buypart_precentage = '3.81',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='496',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='496',meanbuyprice_withTax='496',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='496',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '19';
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', '19', '1.00', '2026-09-13', '1', '0','0001901','499','499','514.9','496','','0','0','0','0','0','0','0','0','0','0'); -- id=19
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('19', '1', '12', '1', '2026-09-13'); -- id=19
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('19', '1', '12', '0', '19', 'إضافة منتج', 'productController.php', '0', '12', '1', '2026-09-13','0','0'); -- id=20
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (19, 1,'2026-09-13 17:58:12',1)
                ON DUPLICATE KEY UPDATE productid = 19, edited = 1, sysdate = '2026-09-13 17:58:12', userid = 1; -- id=19
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '5952', '5952', '2026-09-13', '1', '0', '0', '2026-09-13 17:58:12','إضافة منتج لقمه usb اسمر  الكمية 12','1','0','0','0','19','productController.php?do=edit&id=19'); -- id=24
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('24', '382', '5952', '','0'); -- id=24
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '349964.45', 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 ('24', '121', '5952', '','0'); -- id=24
UPDATE accountstree SET name = 'حساب وسيط للارصدة الافتتاحية', customName = 'حساب وسيط للارصدة الافتتاحية', customNameEn = 'Paid Capital', nameEn = 'Paid Capital', parent = '119', accountNature = '1', theValue = '-511073.3', 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 = 'لقمه usb اسمر ', productDescription = '', productCatId = '1', productBuyPrice = '496.00', productSellAllPrice = '499.00', productSellUnitPrice = '514.90', productSellHalfPrice = '499.00', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '5', parcode = '00019',type ='0', expireDate = '0' , dailyentryId = '24',isService = '0',isOptic = '0',lastbuyprice = '496',lastbuyprice_withDiscount = '496',meanbuyprice = '496',meanbuyprice_withDiscount = '496' , productbuypricereal = '496' , buypricereal_precentage = '0' , buytotal_precentage = '0.6' , buyhalf_precentage = '0.6' , buypart_precentage = '3.81',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='496',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='496',meanbuyprice_withTax='496',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='496',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '19';
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 ('ديمر مروحه اسمر ','','1','221','225','230','225','2026-09-13','0','1','0','','0','0','0','0','0','221','221','221','221','221','0','1.81','1.81','4.07','.','0','0','0','221','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','221','221','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','221','0','0','0','0','0','0','','','0','0','0','0'); -- id=20
UPDATE product SET productName = 'ديمر مروحه اسمر ', productDescription = '', productCatId = '1', productBuyPrice = '221', productSellAllPrice = '225', productSellUnitPrice = '230', productSellHalfPrice = '225', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '0', parcode = '00020',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '221',lastbuyprice_withDiscount = '221',meanbuyprice = '221',meanbuyprice_withDiscount = '221' , productbuypricereal = '221' , buypricereal_precentage = '0' , buytotal_precentage = '1.81' , buyhalf_precentage = '1.81' , buypart_precentage = '4.07',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='221',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='221',meanbuyprice_withTax='221',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='221',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '20';
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', '20', '1.00', '2026-09-13', '1', '0','0002001','225','225','230','221','','0','0','0','0','0','0','0','0','0','0'); -- id=20
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('20', '1', '2', '1', '2026-09-13'); -- id=20
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('20', '1', '2', '0', '20', 'إضافة منتج', 'productController.php', '0', '2', '1', '2026-09-13','0','0'); -- id=21
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (20, 1,'2026-09-13 17:58:14',1)
                ON DUPLICATE KEY UPDATE productid = 20, edited = 1, sysdate = '2026-09-13 17:58:14', userid = 1; -- id=20
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '442', '442', '2026-09-13', '1', '0', '0', '2026-09-13 17:58:14','إضافة منتج ديمر مروحه اسمر  الكمية 2','1','0','0','0','20','productController.php?do=edit&id=20'); -- id=25
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('25', '382', '442', '','0'); -- id=25
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '350406.45', 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 ('25', '121', '442', '','0'); -- id=25
UPDATE accountstree SET name = 'حساب وسيط للارصدة الافتتاحية', customName = 'حساب وسيط للارصدة الافتتاحية', customNameEn = 'Paid Capital', nameEn = 'Paid Capital', parent = '119', accountNature = '1', theValue = '-510631.3', 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 = 'ديمر مروحه اسمر ', productDescription = '', productCatId = '1', productBuyPrice = '221.00', productSellAllPrice = '225.00', productSellUnitPrice = '230.00', productSellHalfPrice = '225.00', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '0', parcode = '00020',type ='0', expireDate = '0' , dailyentryId = '25',isService = '0',isOptic = '0',lastbuyprice = '221',lastbuyprice_withDiscount = '221',meanbuyprice = '221',meanbuyprice_withDiscount = '221' , productbuypricereal = '221' , buypricereal_precentage = '0' , buytotal_precentage = '1.81' , buyhalf_precentage = '1.81' , buypart_precentage = '4.07',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='221',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='221',meanbuyprice_withTax='221',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='221',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '20';
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 ('مفتاح ستاره اسمر ','','1','156','158','163.62','158','2026-09-13','0','1','0','','0','0','0','0','0','156','156','156','156','156','0','1.28','1.28','4.88','.','0','0','0','156','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','156','156','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','156','0','0','0','0','0','0','','','0','0','0','0'); -- id=21
UPDATE product SET productName = 'مفتاح ستاره اسمر ', productDescription = '', productCatId = '1', productBuyPrice = '156', productSellAllPrice = '158', productSellUnitPrice = '163.62', productSellHalfPrice = '158', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '0', parcode = '00021',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '156',lastbuyprice_withDiscount = '156',meanbuyprice = '156',meanbuyprice_withDiscount = '156' , productbuypricereal = '156' , buypricereal_precentage = '0' , buytotal_precentage = '1.28' , buyhalf_precentage = '1.28' , buypart_precentage = '4.88',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='156',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='156',meanbuyprice_withTax='156',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='156',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '21';
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', '21', '1.00', '2026-09-13', '1', '0','0002101','158','158','163.62','156','','0','0','0','0','0','0','0','0','0','0'); -- id=21
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('21', '1', '5', '1', '2026-09-13'); -- id=21
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('21', '1', '5', '0', '21', 'إضافة منتج', 'productController.php', '0', '5', '1', '2026-09-13','0','0'); -- id=22
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (21, 1,'2026-09-13 17:58:16',1)
                ON DUPLICATE KEY UPDATE productid = 21, edited = 1, sysdate = '2026-09-13 17:58:16', userid = 1; -- id=21
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '780', '780', '2026-09-13', '1', '0', '0', '2026-09-13 17:58:16','إضافة منتج مفتاح ستاره اسمر  الكمية 5','1','0','0','0','21','productController.php?do=edit&id=21'); -- id=26
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('26', '382', '780', '','0'); -- id=26
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '351186.45', 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 ('26', '121', '780', '','0'); -- id=26
UPDATE accountstree SET name = 'حساب وسيط للارصدة الافتتاحية', customName = 'حساب وسيط للارصدة الافتتاحية', customNameEn = 'Paid Capital', nameEn = 'Paid Capital', parent = '119', accountNature = '1', theValue = '-509851.3', 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 = 'مفتاح ستاره اسمر ', productDescription = '', productCatId = '1', productBuyPrice = '156.00', productSellAllPrice = '158.00', productSellUnitPrice = '163.62', productSellHalfPrice = '158.00', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '0', parcode = '00021',type ='0', expireDate = '0' , dailyentryId = '26',isService = '0',isOptic = '0',lastbuyprice = '156',lastbuyprice_withDiscount = '156',meanbuyprice = '156',meanbuyprice_withDiscount = '156' , productbuypricereal = '156' , buypricereal_precentage = '0' , buytotal_precentage = '1.28' , buyhalf_precentage = '1.28' , buypart_precentage = '4.88',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='156',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='156',meanbuyprice_withTax='156',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='156',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '21';
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 ('سخان 20 امبير عريض ','','1','190','192','198','192','2026-09-13','0','1','4','','0','0','0','0','0','190','190','190','190','190','0','1.05','1.05','4.21','.','0','0','0','190','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','190','190','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','190','0','0','0','0','0','0','','','0','0','0','0'); -- id=22
UPDATE product SET productName = 'سخان 20 امبير عريض ', productDescription = '', productCatId = '1', productBuyPrice = '190', productSellAllPrice = '192', productSellUnitPrice = '198', productSellHalfPrice = '192', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '4', parcode = '00022',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '190',lastbuyprice_withDiscount = '190',meanbuyprice = '190',meanbuyprice_withDiscount = '190' , productbuypricereal = '190' , buypricereal_precentage = '0' , buytotal_precentage = '1.05' , buyhalf_precentage = '1.05' , buypart_precentage = '4.21',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='190',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='190',meanbuyprice_withTax='190',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='190',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '22';
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', '22', '1.00', '2026-09-13', '1', '0','0002201','192','192','198','190','','0','0','0','0','0','0','0','0','0','0'); -- id=22
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('22', '1', '12', '1', '2026-09-13'); -- id=22
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('22', '1', '12', '0', '22', 'إضافة منتج', 'productController.php', '0', '12', '1', '2026-09-13','0','0'); -- id=23
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (22, 1,'2026-09-13 17:58:18',1)
                ON DUPLICATE KEY UPDATE productid = 22, edited = 1, sysdate = '2026-09-13 17:58:18', userid = 1; -- id=22
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '2280', '2280', '2026-09-13', '1', '0', '0', '2026-09-13 17:58:18','إضافة منتج سخان 20 امبير عريض  الكمية 12','1','0','0','0','22','productController.php?do=edit&id=22'); -- id=27
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('27', '382', '2280', '','0'); -- id=27
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '353466.45', 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 ('27', '121', '2280', '','0'); -- id=27
UPDATE accountstree SET name = 'حساب وسيط للارصدة الافتتاحية', customName = 'حساب وسيط للارصدة الافتتاحية', customNameEn = 'Paid Capital', nameEn = 'Paid Capital', parent = '119', accountNature = '1', theValue = '-507571.3', 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 = 'سخان 20 امبير عريض ', productDescription = '', productCatId = '1', productBuyPrice = '190.00', productSellAllPrice = '192.00', productSellUnitPrice = '198.00', productSellHalfPrice = '192.00', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '4', parcode = '00022',type ='0', expireDate = '0' , dailyentryId = '27',isService = '0',isOptic = '0',lastbuyprice = '190',lastbuyprice_withDiscount = '190',meanbuyprice = '190',meanbuyprice_withDiscount = '190' , productbuypricereal = '190' , buypricereal_precentage = '0' , buytotal_precentage = '1.05' , buyhalf_precentage = '1.05' , buypart_precentage = '4.21',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='190',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='190',meanbuyprice_withTax='190',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='190',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '22';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 14:28:20";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 17:58:20", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-09-13 17:58:20', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productController.php'); -- id=179
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 14:28:31";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 17:58:31", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-09-13 17:58:31', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productController.php?do=show'); -- id=180
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 14:28:37";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 17:58:37", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-09-13 17:58:37', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productController.php?do=show'); -- id=181
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 14:31:17";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 18:01:17", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storedetailController.php', '2026-09-13 18:01:17', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/storedetailController.php'); -- id=182
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 14:31:24";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 18:01:24", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storedetailController.php', '2026-09-13 18:01:24', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/storedetailController.php?do=show'); -- id=183
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 14:31:43";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 18:01:43", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-09-13 18:01:43', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productController.php'); -- id=184
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 14:35:47";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 18:05:48", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-09-13 18:05:48', '1', 'add', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productController.php?do=add'); -- id=185
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 متر ','','17','60','65','70','65','2026-09-13','0','1','0','','0','0','0','0','0','60','60','60','60','60','0','8.33','8.33','16.67','.','0','0','0','60','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','60','60','0','0','0','0','0','0','0','0','0','0','0','0','-1','0','','60','0','0','0','0','0','0','','','0','0','0','0'); -- id=23
UPDATE product SET productName = 'عود 2 متر ', productDescription = '', productCatId = '17', productBuyPrice = '60', productSellAllPrice = '65', productSellUnitPrice = '70', productSellHalfPrice = '65', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '0', parcode = '00023',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '60',lastbuyprice_withDiscount = '60',meanbuyprice = '60',meanbuyprice_withDiscount = '60' , productbuypricereal = '60' , buypricereal_precentage = '0' , buytotal_precentage = '8.33' , buyhalf_precentage = '8.33' , buypart_precentage = '16.67',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='60',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='60',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='',lastbuyprice_withDiscountAndTax='60',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '23';
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', '23', '1.00', '2026-09-13', '1', '0','0002301','65','65','70','60','','0','0','0','0','0','0','0','0','0','0'); -- id=23
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('23', '1', '25', '1', '2026-09-13'); -- id=23
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('23', '1', '25', '0', '23', 'إضافة منتج', 'productController.php', '0', '25', '1', '2026-09-13','0','0'); -- id=24
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (23, 1,'2026-09-13 18:05:49',1)
                ON DUPLICATE KEY UPDATE productid = 23, edited = 1, sysdate = '2026-09-13 18:05:49', userid = 1; -- id=23
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '1500', '1500', '2026-09-13', '1', '0', '0', '2026-09-13 18:05:49','إضافة منتج عود 2 متر  الكمية 25','1','0','0','0','23','productController.php?do=edit&id=23'); -- id=28
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('28', '382', '1500', '','0'); -- id=28
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '354966.45', 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 ('28', '121', '1500', '','0'); -- id=28
UPDATE accountstree SET name = 'حساب وسيط للارصدة الافتتاحية', customName = 'حساب وسيط للارصدة الافتتاحية', customNameEn = 'Paid Capital', nameEn = 'Paid Capital', parent = '119', accountNature = '1', theValue = '-506071.3', 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 = 'عود 2 متر ', productDescription = '', productCatId = '17', productBuyPrice = '60.00', productSellAllPrice = '65.00', productSellUnitPrice = '70.00', productSellHalfPrice = '65.00', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '0', parcode = '00023',type ='0', expireDate = '0' , dailyentryId = '28',isService = '0',isOptic = '0',lastbuyprice = '60',lastbuyprice_withDiscount = '60',meanbuyprice = '60',meanbuyprice_withDiscount = '60' , productbuypricereal = '60' , buypricereal_precentage = '0' , buytotal_precentage = '8.33' , buyhalf_precentage = '8.33' , buypart_precentage = '16.67',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='60',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='60',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='',lastbuyprice_withDiscountAndTax='60',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '23';
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 ('قطعه عيون 20وات ','','17','262','295','295','295','2026-09-13','0','1','0','','0','0','0','0','0','262','262','262','262','262','0','12.6','12.6','12.6','.','0','0','0','262','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','262','262','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','262','0','0','0','0','0','0','','','0','0','0','0'); -- id=24
UPDATE product SET productName = 'قطعه عيون 20وات ', productDescription = '', productCatId = '17', productBuyPrice = '262', productSellAllPrice = '295', productSellUnitPrice = '295', productSellHalfPrice = '295', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '0', parcode = '00024',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '262',lastbuyprice_withDiscount = '262',meanbuyprice = '262',meanbuyprice_withDiscount = '262' , productbuypricereal = '262' , buypricereal_precentage = '0' , buytotal_precentage = '12.6' , buyhalf_precentage = '12.6' , buypart_precentage = '12.6',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='262',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='262',meanbuyprice_withTax='262',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='262',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '24';
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', '24', '1.00', '2026-09-13', '1', '0','0002401','295','295','295','262','','0','0','0','0','0','0','0','0','0','0'); -- id=24
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('24', '1', '19', '1', '2026-09-13'); -- id=24
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('24', '1', '19', '0', '24', 'إضافة منتج', 'productController.php', '0', '19', '1', '2026-09-13','0','0'); -- id=25
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (24, 1,'2026-09-13 18:05:51',1)
                ON DUPLICATE KEY UPDATE productid = 24, edited = 1, sysdate = '2026-09-13 18:05:51', userid = 1; -- id=24
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '4978', '4978', '2026-09-13', '1', '0', '0', '2026-09-13 18:05:51','إضافة منتج قطعه عيون 20وات  الكمية 19','1','0','0','0','24','productController.php?do=edit&id=24'); -- id=29
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('29', '382', '4978', '','0'); -- id=29
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '359944.45', 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 ('29', '121', '4978', '','0'); -- id=29
UPDATE accountstree SET name = 'حساب وسيط للارصدة الافتتاحية', customName = 'حساب وسيط للارصدة الافتتاحية', customNameEn = 'Paid Capital', nameEn = 'Paid Capital', parent = '119', accountNature = '1', theValue = '-501093.3', 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 = 'قطعه عيون 20وات ', productDescription = '', productCatId = '17', productBuyPrice = '262.00', productSellAllPrice = '295.00', productSellUnitPrice = '295.00', productSellHalfPrice = '295.00', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '0', parcode = '00024',type ='0', expireDate = '0' , dailyentryId = '29',isService = '0',isOptic = '0',lastbuyprice = '262',lastbuyprice_withDiscount = '262',meanbuyprice = '262',meanbuyprice_withDiscount = '262' , productbuypricereal = '262' , buypricereal_precentage = '0' , buytotal_precentage = '12.6' , buyhalf_precentage = '12.6' , buypart_precentage = '12.6',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='262',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='262',meanbuyprice_withTax='262',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='262',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '24';
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 ('قطعه بروفايل 30 وات ','','17','262','295','295','295','2026-09-13','0','1','0','','0','0','0','0','0','262','262','262','262','262','0','12.6','12.6','12.6','.','0','0','0','262','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','262','262','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','262','0','0','0','0','0','0','','','0','0','0','0'); -- id=25
UPDATE product SET productName = 'قطعه بروفايل 30 وات ', productDescription = '', productCatId = '17', productBuyPrice = '262', productSellAllPrice = '295', productSellUnitPrice = '295', productSellHalfPrice = '295', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '0', parcode = '00025',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '262',lastbuyprice_withDiscount = '262',meanbuyprice = '262',meanbuyprice_withDiscount = '262' , productbuypricereal = '262' , buypricereal_precentage = '0' , buytotal_precentage = '12.6' , buyhalf_precentage = '12.6' , buypart_precentage = '12.6',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='262',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='262',meanbuyprice_withTax='262',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='262',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '25';
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', '25', '1.00', '2026-09-13', '1', '0','0002501','295','295','295','262','','0','0','0','0','0','0','0','0','0','0'); -- id=25
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('25', '1', '9', '1', '2026-09-13'); -- id=25
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('25', '1', '9', '0', '25', 'إضافة منتج', 'productController.php', '0', '9', '1', '2026-09-13','0','0'); -- id=26
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (25, 1,'2026-09-13 18:05:53',1)
                ON DUPLICATE KEY UPDATE productid = 25, edited = 1, sysdate = '2026-09-13 18:05:53', userid = 1; -- id=25
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '2358', '2358', '2026-09-13', '1', '0', '0', '2026-09-13 18:05:53','إضافة منتج قطعه بروفايل 30 وات  الكمية 9','1','0','0','0','25','productController.php?do=edit&id=25'); -- id=30
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('30', '382', '2358', '','0'); -- id=30
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '362302.45', 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 ('30', '121', '2358', '','0'); -- id=30
UPDATE accountstree SET name = 'حساب وسيط للارصدة الافتتاحية', customName = 'حساب وسيط للارصدة الافتتاحية', customNameEn = 'Paid Capital', nameEn = 'Paid Capital', parent = '119', accountNature = '1', theValue = '-498735.3', 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 = 'قطعه بروفايل 30 وات ', productDescription = '', productCatId = '17', productBuyPrice = '262.00', productSellAllPrice = '295.00', productSellUnitPrice = '295.00', productSellHalfPrice = '295.00', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '0', parcode = '00025',type ='0', expireDate = '0' , dailyentryId = '30',isService = '0',isOptic = '0',lastbuyprice = '262',lastbuyprice_withDiscount = '262',meanbuyprice = '262',meanbuyprice_withDiscount = '262' , productbuypricereal = '262' , buypricereal_precentage = '0' , buytotal_precentage = '12.6' , buyhalf_precentage = '12.6' , buypart_precentage = '12.6',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='262',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='262',meanbuyprice_withTax='262',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='262',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '25';
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 ('قطعه عيون متحرك 20 وات ','','17','285','305','325','315','2026-09-13','0','1','0','','0','0','0','0','0','285','285','285','285','285','0','7.02','10.53','14.04','.','0','0','0','285','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','285','285','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','285','0','0','0','0','0','0','','','0','0','0','0'); -- id=26
UPDATE product SET productName = 'قطعه عيون متحرك 20 وات ', productDescription = '', productCatId = '17', productBuyPrice = '285', productSellAllPrice = '305', productSellUnitPrice = '325', productSellHalfPrice = '315', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '0', parcode = '00026',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '285',lastbuyprice_withDiscount = '285',meanbuyprice = '285',meanbuyprice_withDiscount = '285' , productbuypricereal = '285' , buypricereal_precentage = '0' , buytotal_precentage = '7.02' , buyhalf_precentage = '10.53' , buypart_precentage = '14.04',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='285',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='285',meanbuyprice_withTax='285',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='285',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '26';
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', '26', '1.00', '2026-09-13', '1', '0','0002601','305','315','325','285','','0','0','0','0','0','0','0','0','0','0'); -- id=26
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('26', '1', '16', '1', '2026-09-13'); -- id=26
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('26', '1', '16', '0', '26', 'إضافة منتج', 'productController.php', '0', '16', '1', '2026-09-13','0','0'); -- id=27
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (26, 1,'2026-09-13 18:05:55',1)
                ON DUPLICATE KEY UPDATE productid = 26, edited = 1, sysdate = '2026-09-13 18:05:55', userid = 1; -- id=26
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '4560', '4560', '2026-09-13', '1', '0', '0', '2026-09-13 18:05:55','إضافة منتج قطعه عيون متحرك 20 وات  الكمية 16','1','0','0','0','26','productController.php?do=edit&id=26'); -- id=31
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('31', '382', '4560', '','0'); -- id=31
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '366862.45', 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 ('31', '121', '4560', '','0'); -- id=31
UPDATE accountstree SET name = 'حساب وسيط للارصدة الافتتاحية', customName = 'حساب وسيط للارصدة الافتتاحية', customNameEn = 'Paid Capital', nameEn = 'Paid Capital', parent = '119', accountNature = '1', theValue = '-494175.3', 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 = 'قطعه عيون متحرك 20 وات ', productDescription = '', productCatId = '17', productBuyPrice = '285.00', productSellAllPrice = '305.00', productSellUnitPrice = '325.00', productSellHalfPrice = '315.00', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '0', parcode = '00026',type ='0', expireDate = '0' , dailyentryId = '31',isService = '0',isOptic = '0',lastbuyprice = '285',lastbuyprice_withDiscount = '285',meanbuyprice = '285',meanbuyprice_withDiscount = '285' , productbuypricereal = '285' , buypricereal_precentage = '0' , buytotal_precentage = '7.02' , buyhalf_precentage = '10.53' , buypart_precentage = '14.04',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='285',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='285',meanbuyprice_withTax='285',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='285',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '26';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 14:35:58";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 18:05:58", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-09-13 18:05:58', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productController.php'); -- id=186
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 14:36:00";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 18:06:00", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-09-13 18:06:00', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productController.php'); -- id=187
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 15:11:46";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 18:41:46", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-09-13 18:41:46', '1', 'add', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productController.php?do=add'); -- id=188
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 ('عود بعد الجبس 3 متر ','','8','562','595','690','595','2026-09-13','0','1','5','','0','0','0','0','0','562','562','562','562','562','0','5.87','5.87','22.78','.','0','0','0','562','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','562','562','0','0','0','0','0','0','0','0','0','0','0','0','-1','0','','562','0','0','0','0','0','0','','','0','0','0','0'); -- id=27
UPDATE product SET productName = 'عود بعد الجبس 3 متر ', productDescription = '', productCatId = '8', productBuyPrice = '562', productSellAllPrice = '595', productSellUnitPrice = '690', productSellHalfPrice = '595', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '5', parcode = '00027',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '562',lastbuyprice_withDiscount = '562',meanbuyprice = '562',meanbuyprice_withDiscount = '562' , productbuypricereal = '562' , buypricereal_precentage = '0' , buytotal_precentage = '5.87' , buyhalf_precentage = '5.87' , buypart_precentage = '22.78',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='562',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='562',meanbuyprice_withTax='562',price4='0',price5='0',price6='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='562',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '27';
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', '27', '1.00', '2026-09-13', '1', '0','0002701','595','595','690','562','','0','0','0','0','0','0','0','0','0','0'); -- id=27
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('27', '1', '25', '1', '2026-09-13'); -- id=27
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('27', '1', '25', '0', '27', 'إضافة منتج', 'productController.php', '0', '25', '1', '2026-09-13','0','0'); -- id=28
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (27, 1,'2026-09-13 18:41:47',1)
                ON DUPLICATE KEY UPDATE productid = 27, edited = 1, sysdate = '2026-09-13 18:41:47', userid = 1; -- id=27
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '14050', '14050', '2026-09-13', '1', '0', '0', '2026-09-13 18:41:47','إضافة منتج عود بعد الجبس 3 متر  الكمية 25','1','0','0','0','27','productController.php?do=edit&id=27'); -- id=32
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('32', '382', '14050', '','0'); -- id=32
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '380912.45', 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 ('32', '121', '14050', '','0'); -- id=32
UPDATE accountstree SET name = 'حساب وسيط للارصدة الافتتاحية', customName = 'حساب وسيط للارصدة الافتتاحية', customNameEn = 'Paid Capital', nameEn = 'Paid Capital', parent = '119', accountNature = '1', theValue = '-480125.3', 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 = 'عود بعد الجبس 3 متر ', productDescription = '', productCatId = '8', productBuyPrice = '562.00', productSellAllPrice = '595.00', productSellUnitPrice = '690.00', productSellHalfPrice = '595.00', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '5', parcode = '00027',type ='0', expireDate = '0' , dailyentryId = '32',isService = '0',isOptic = '0',lastbuyprice = '562',lastbuyprice_withDiscount = '562',meanbuyprice = '562',meanbuyprice_withDiscount = '562' , productbuypricereal = '562' , buypricereal_precentage = '0' , buytotal_precentage = '5.87' , buyhalf_precentage = '5.87' , buypart_precentage = '22.78',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='562',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='562',meanbuyprice_withTax='562',price4='0',price5='0',price6='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='562',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '27';
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 ('عود قبل الجبس ','','8','475','485','525','485','2026-09-13','0','1','5','','0','0','0','0','0','475','475','475','475','475','0','2.11','2.11','10.53','.','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','1','0','0','0','0','0','0','','475','0','0','0','0','0','0','','','0','0','0','0'); -- id=28
UPDATE product SET productName = 'عود قبل الجبس ', productDescription = '', productCatId = '8', productBuyPrice = '475', productSellAllPrice = '485', productSellUnitPrice = '525', productSellHalfPrice = '485', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '5', parcode = '00028',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 = '2.11' , buyhalf_precentage = '2.11' , buypart_precentage = '10.53',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='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',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 = '28';
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', '28', '1.00', '2026-09-13', '1', '0','0002801','485','485','525','475','','0','0','0','0','0','0','0','0','0','0'); -- id=28
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('28', '1', '17', '1', '2026-09-13'); -- id=28
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('28', '1', '17', '0', '28', 'إضافة منتج', 'productController.php', '0', '17', '1', '2026-09-13','0','0'); -- id=29
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (28, 1,'2026-09-13 18:41:49',1)
                ON DUPLICATE KEY UPDATE productid = 28, edited = 1, sysdate = '2026-09-13 18:41:49', userid = 1; -- id=28
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '8075', '8075', '2026-09-13', '1', '0', '0', '2026-09-13 18:41:49','إضافة منتج عود قبل الجبس  الكمية 17','1','0','0','0','28','productController.php?do=edit&id=28'); -- id=33
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('33', '382', '8075', '','0'); -- id=33
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '388987.45', 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 ('33', '121', '8075', '','0'); -- id=33
UPDATE accountstree SET name = 'حساب وسيط للارصدة الافتتاحية', customName = 'حساب وسيط للارصدة الافتتاحية', customNameEn = 'Paid Capital', nameEn = 'Paid Capital', parent = '119', accountNature = '1', theValue = '-472050.3', 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 = 'عود قبل الجبس ', productDescription = '', productCatId = '8', productBuyPrice = '475.00', productSellAllPrice = '485.00', productSellUnitPrice = '525.00', productSellHalfPrice = '485.00', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '5', parcode = '00028',type ='0', expireDate = '0' , dailyentryId = '33',isService = '0',isOptic = '0',lastbuyprice = '475',lastbuyprice_withDiscount = '475',meanbuyprice = '475',meanbuyprice_withDiscount = '475' , productbuypricereal = '475' , buypricereal_precentage = '0' , buytotal_precentage = '2.11' , buyhalf_precentage = '2.11' , buypart_precentage = '10.53',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='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',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 = '28';
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 ('قطعه بروفايل24 وات 60 سنتي ','','8','200','220','245','230','2026-09-13','0','1','5','','0','0','0','0','0','200','200','200','200','200','0','10','15','22.5','.','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=29
UPDATE product SET productName = 'قطعه بروفايل24 وات 60 سنتي ', productDescription = '', productCatId = '8', productBuyPrice = '200', productSellAllPrice = '220', productSellUnitPrice = '245', productSellHalfPrice = '230', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '5', parcode = '00029',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 = '10' , buyhalf_precentage = '15' , buypart_precentage = '22.5',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 = '29';
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', '29', '1.00', '2026-09-13', '1', '0','0002901','220','230','245','200','','0','0','0','0','0','0','0','0','0','0'); -- id=29
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('29', '1', '11', '1', '2026-09-13'); -- id=29
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('29', '1', '11', '0', '29', 'إضافة منتج', 'productController.php', '0', '11', '1', '2026-09-13','0','0'); -- id=30
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (29, 1,'2026-09-13 18:41:51',1)
                ON DUPLICATE KEY UPDATE productid = 29, edited = 1, sysdate = '2026-09-13 18:41:51', userid = 1; -- id=29
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '2200', '2200', '2026-09-13', '1', '0', '0', '2026-09-13 18:41:51','إضافة منتج قطعه بروفايل24 وات 60 سنتي  الكمية 11','1','0','0','0','29','productController.php?do=edit&id=29'); -- id=34
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('34', '382', '2200', '','0'); -- id=34
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '391187.45', 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 ('34', '121', '2200', '','0'); -- id=34
UPDATE accountstree SET name = 'حساب وسيط للارصدة الافتتاحية', customName = 'حساب وسيط للارصدة الافتتاحية', customNameEn = 'Paid Capital', nameEn = 'Paid Capital', parent = '119', accountNature = '1', theValue = '-469850.3', 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 = 'قطعه بروفايل24 وات 60 سنتي ', productDescription = '', productCatId = '8', productBuyPrice = '200.00', productSellAllPrice = '220.00', productSellUnitPrice = '245.00', productSellHalfPrice = '230.00', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '5', parcode = '00029',type ='0', expireDate = '0' , dailyentryId = '34',isService = '0',isOptic = '0',lastbuyprice = '200',lastbuyprice_withDiscount = '200',meanbuyprice = '200',meanbuyprice_withDiscount = '200' , productbuypricereal = '200' , buypricereal_precentage = '0' , buytotal_precentage = '10' , buyhalf_precentage = '15' , buypart_precentage = '22.5',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 = '29';
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 ('قطعه بروفايل 12 وات 30 سنتي','','8','150','200','220','200','2026-09-13','0','1','0','','0','0','0','0','0','150','150','150','150','150','0','33.33','33.33','46.67','.','0','0','0','150','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','150','150','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','150','0','0','0','0','0','0','','','0','0','0','0'); -- id=30
UPDATE product SET productName = 'قطعه بروفايل 12 وات 30 سنتي', productDescription = '', productCatId = '8', productBuyPrice = '150', productSellAllPrice = '200', productSellUnitPrice = '220', productSellHalfPrice = '200', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '0', parcode = '00030',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '150',lastbuyprice_withDiscount = '150',meanbuyprice = '150',meanbuyprice_withDiscount = '150' , productbuypricereal = '150' , buypricereal_precentage = '0' , buytotal_precentage = '33.33' , buyhalf_precentage = '33.33' , buypart_precentage = '46.67',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='150',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='150',meanbuyprice_withTax='150',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='150',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '30';
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', '30', '1.00', '2026-09-13', '1', '0','0003001','200','200','220','150','','0','0','0','0','0','0','0','0','0','0'); -- id=30
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('30', '1', '3', '1', '2026-09-13'); -- id=30
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('30', '1', '3', '0', '30', 'إضافة منتج', 'productController.php', '0', '3', '1', '2026-09-13','0','0'); -- id=31
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (30, 1,'2026-09-13 18:41:53',1)
                ON DUPLICATE KEY UPDATE productid = 30, edited = 1, sysdate = '2026-09-13 18:41:53', userid = 1; -- id=30
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '450', '450', '2026-09-13', '1', '0', '0', '2026-09-13 18:41:53','إضافة منتج قطعه بروفايل 12 وات 30 سنتي الكمية 3','1','0','0','0','30','productController.php?do=edit&id=30'); -- id=35
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('35', '382', '450', '','0'); -- id=35
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '391637.45', 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 ('35', '121', '450', '','0'); -- id=35
UPDATE accountstree SET name = 'حساب وسيط للارصدة الافتتاحية', customName = 'حساب وسيط للارصدة الافتتاحية', customNameEn = 'Paid Capital', nameEn = 'Paid Capital', parent = '119', accountNature = '1', theValue = '-469400.3', 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 = 'قطعه بروفايل 12 وات 30 سنتي', productDescription = '', productCatId = '8', productBuyPrice = '150.00', productSellAllPrice = '200.00', productSellUnitPrice = '220.00', productSellHalfPrice = '200.00', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '0', parcode = '00030',type ='0', expireDate = '0' , dailyentryId = '35',isService = '0',isOptic = '0',lastbuyprice = '150',lastbuyprice_withDiscount = '150',meanbuyprice = '150',meanbuyprice_withDiscount = '150' , productbuypricereal = '150' , buypricereal_precentage = '0' , buytotal_precentage = '33.33' , buyhalf_precentage = '33.33' , buypart_precentage = '46.67',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='150',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='150',meanbuyprice_withTax='150',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='150',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '30';
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 ('قطعه 12 وات عيون متحرك دائري باندا ','','8','329','335','385','335','2026-09-13','0','1','5','','0','0','0','0','0','329','329','329','329','329','0','1.82','1.82','17.02','.','0','0','0','329','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','329','329','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','329','0','0','0','0','0','0','','','0','0','0','0'); -- id=31
UPDATE product SET productName = 'قطعه 12 وات عيون متحرك دائري باندا ', productDescription = '', productCatId = '8', productBuyPrice = '329', productSellAllPrice = '335', productSellUnitPrice = '385', productSellHalfPrice = '335', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '5', parcode = '00031',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '329',lastbuyprice_withDiscount = '329',meanbuyprice = '329',meanbuyprice_withDiscount = '329' , productbuypricereal = '329' , buypricereal_precentage = '0' , buytotal_precentage = '1.82' , buyhalf_precentage = '1.82' , buypart_precentage = '17.02',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='329',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='329',meanbuyprice_withTax='329',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='329',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '31';
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', '31', '1.00', '2026-09-13', '1', '0','0003101','335','335','385','329','','0','0','0','0','0','0','0','0','0','0'); -- id=31
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('31', '1', '19', '1', '2026-09-13'); -- id=31
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('31', '1', '19', '0', '31', 'إضافة منتج', 'productController.php', '0', '19', '1', '2026-09-13','0','0'); -- id=32
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (31, 1,'2026-09-13 18:41:56',1)
                ON DUPLICATE KEY UPDATE productid = 31, edited = 1, sysdate = '2026-09-13 18:41:56', userid = 1; -- id=31
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '6251', '6251', '2026-09-13', '1', '0', '0', '2026-09-13 18:41:56','إضافة منتج قطعه 12 وات عيون متحرك دائري باندا  الكمية 19','1','0','0','0','31','productController.php?do=edit&id=31'); -- id=36
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('36', '382', '6251', '','0'); -- id=36
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '397888.45', 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 ('36', '121', '6251', '','0'); -- id=36
UPDATE accountstree SET name = 'حساب وسيط للارصدة الافتتاحية', customName = 'حساب وسيط للارصدة الافتتاحية', customNameEn = 'Paid Capital', nameEn = 'Paid Capital', parent = '119', accountNature = '1', theValue = '-463149.3', 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 = 'قطعه 12 وات عيون متحرك دائري باندا ', productDescription = '', productCatId = '8', productBuyPrice = '329.00', productSellAllPrice = '335.00', productSellUnitPrice = '385.00', productSellHalfPrice = '335.00', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '5', parcode = '00031',type ='0', expireDate = '0' , dailyentryId = '36',isService = '0',isOptic = '0',lastbuyprice = '329',lastbuyprice_withDiscount = '329',meanbuyprice = '329',meanbuyprice_withDiscount = '329' , productbuypricereal = '329' , buypricereal_precentage = '0' , buytotal_precentage = '1.82' , buyhalf_precentage = '1.82' , buypart_precentage = '17.02',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='329',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='329',meanbuyprice_withTax='329',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='329',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '31';
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 ('قطعه 24 وات عيون ثابت باندا ','','8','255','265','295','295','2026-09-13','0','1','10','','0','0','0','0','0','255','255','255','255','255','0','3.92','15.69','15.69','.','0','0','0','255','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','255','255','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','255','0','0','0','0','0','0','','','0','0','0','0'); -- id=32
UPDATE product SET productName = 'قطعه 24 وات عيون ثابت باندا ', productDescription = '', productCatId = '8', productBuyPrice = '255', productSellAllPrice = '265', productSellUnitPrice = '295', productSellHalfPrice = '295', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '10', parcode = '00032',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '255',lastbuyprice_withDiscount = '255',meanbuyprice = '255',meanbuyprice_withDiscount = '255' , productbuypricereal = '255' , buypricereal_precentage = '0' , buytotal_precentage = '3.92' , buyhalf_precentage = '15.69' , buypart_precentage = '15.69',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='255',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='255',meanbuyprice_withTax='255',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='255',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '32';
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', '32', '1.00', '2026-09-13', '1', '0','0003201','265','295','295','255','','0','0','0','0','0','0','0','0','0','0'); -- id=32
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('32', '1', '34', '1', '2026-09-13'); -- id=32
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('32', '1', '34', '0', '32', 'إضافة منتج', 'productController.php', '0', '34', '1', '2026-09-13','0','0'); -- id=33
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (32, 1,'2026-09-13 18:41:58',1)
                ON DUPLICATE KEY UPDATE productid = 32, edited = 1, sysdate = '2026-09-13 18:41:58', userid = 1; -- id=32
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '8670', '8670', '2026-09-13', '1', '0', '0', '2026-09-13 18:41:58','إضافة منتج قطعه 24 وات عيون ثابت باندا  الكمية 34','1','0','0','0','32','productController.php?do=edit&id=32'); -- id=37
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('37', '382', '8670', '','0'); -- id=37
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '406558.45', 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 ('37', '121', '8670', '','0'); -- id=37
UPDATE accountstree SET name = 'حساب وسيط للارصدة الافتتاحية', customName = 'حساب وسيط للارصدة الافتتاحية', customNameEn = 'Paid Capital', nameEn = 'Paid Capital', parent = '119', accountNature = '1', theValue = '-454479.3', 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 = 'قطعه 24 وات عيون ثابت باندا ', productDescription = '', productCatId = '8', productBuyPrice = '255.00', productSellAllPrice = '265.00', productSellUnitPrice = '295.00', productSellHalfPrice = '295.00', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '10', parcode = '00032',type ='0', expireDate = '0' , dailyentryId = '37',isService = '0',isOptic = '0',lastbuyprice = '255',lastbuyprice_withDiscount = '255',meanbuyprice = '255',meanbuyprice_withDiscount = '255' , productbuypricereal = '255' , buypricereal_precentage = '0' , buytotal_precentage = '3.92' , buyhalf_precentage = '15.69' , buypart_precentage = '15.69',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='255',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='255',meanbuyprice_withTax='255',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='255',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '32';
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 ('قطعه عدسات متحرك 12 وات باندا ','','8','303','315','355','315','2026-09-13','0','1','5','','0','0','0','0','0','303','303','303','303','303','0','3.96','3.96','17.16','.','0','0','0','303','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','303','303','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','303','0','0','0','0','0','0','','','0','0','0','0'); -- id=33
UPDATE product SET productName = 'قطعه عدسات متحرك 12 وات باندا ', productDescription = '', productCatId = '8', productBuyPrice = '303', productSellAllPrice = '315', productSellUnitPrice = '355', productSellHalfPrice = '315', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '5', parcode = '00033',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '303',lastbuyprice_withDiscount = '303',meanbuyprice = '303',meanbuyprice_withDiscount = '303' , productbuypricereal = '303' , buypricereal_precentage = '0' , buytotal_precentage = '3.96' , buyhalf_precentage = '3.96' , buypart_precentage = '17.16',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='303',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='303',meanbuyprice_withTax='303',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='303',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '33';
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', '33', '1.00', '2026-09-13', '1', '0','0003301','315','315','355','303','','0','0','0','0','0','0','0','0','0','0'); -- id=33
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('33', '1', '15', '1', '2026-09-13'); -- id=33
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('33', '1', '15', '0', '33', 'إضافة منتج', 'productController.php', '0', '15', '1', '2026-09-13','0','0'); -- id=34
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (33, 1,'2026-09-13 18:42:00',1)
                ON DUPLICATE KEY UPDATE productid = 33, edited = 1, sysdate = '2026-09-13 18:42:00', userid = 1; -- id=33
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '4545', '4545', '2026-09-13', '1', '0', '0', '2026-09-13 18:42:00','إضافة منتج قطعه عدسات متحرك 12 وات باندا  الكمية 15','1','0','0','0','33','productController.php?do=edit&id=33'); -- id=38
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('38', '382', '4545', '','0'); -- id=38
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '411103.45', 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 ('38', '121', '4545', '','0'); -- id=38
UPDATE accountstree SET name = 'حساب وسيط للارصدة الافتتاحية', customName = 'حساب وسيط للارصدة الافتتاحية', customNameEn = 'Paid Capital', nameEn = 'Paid Capital', parent = '119', accountNature = '1', theValue = '-449934.3', 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 = 'قطعه عدسات متحرك 12 وات باندا ', productDescription = '', productCatId = '8', productBuyPrice = '303.00', productSellAllPrice = '315.00', productSellUnitPrice = '355.00', productSellHalfPrice = '315.00', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '5', parcode = '00033',type ='0', expireDate = '0' , dailyentryId = '38',isService = '0',isOptic = '0',lastbuyprice = '303',lastbuyprice_withDiscount = '303',meanbuyprice = '303',meanbuyprice_withDiscount = '303' , productbuypricereal = '303' , buypricereal_precentage = '0' , buytotal_precentage = '3.96' , buyhalf_precentage = '3.96' , buypart_precentage = '17.16',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='303',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='303',meanbuyprice_withTax='303',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='303',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '33';
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 ('قطعه عدسات 18وات متحرك باندا ','','8','385','395','435','400','2026-09-13','0','1','5','','0','0','0','0','0','385','385','385','385','385','0','2.6','3.9','12.99','.','0','0','0','385','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','385','385','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','385','0','0','0','0','0','0','','','0','0','0','0'); -- id=34
UPDATE product SET productName = 'قطعه عدسات 18وات متحرك باندا ', productDescription = '', productCatId = '8', productBuyPrice = '385', productSellAllPrice = '395', productSellUnitPrice = '435', productSellHalfPrice = '400', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '5', parcode = '00034',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '385',lastbuyprice_withDiscount = '385',meanbuyprice = '385',meanbuyprice_withDiscount = '385' , productbuypricereal = '385' , buypricereal_precentage = '0' , buytotal_precentage = '2.6' , buyhalf_precentage = '3.9' , buypart_precentage = '12.99',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='385',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',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='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='385',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '34';
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', '34', '1.00', '2026-09-13', '1', '0','0003401','395','400','435','385','','0','0','0','0','0','0','0','0','0','0'); -- id=34
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('34', '1', '15', '1', '2026-09-13'); -- id=34
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('34', '1', '15', '0', '34', 'إضافة منتج', 'productController.php', '0', '15', '1', '2026-09-13','0','0'); -- id=35
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (34, 1,'2026-09-13 18:42:02',1)
                ON DUPLICATE KEY UPDATE productid = 34, edited = 1, sysdate = '2026-09-13 18:42:02', userid = 1; -- id=34
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '5775', '5775', '2026-09-13', '1', '0', '0', '2026-09-13 18:42:02','إضافة منتج قطعه عدسات 18وات متحرك باندا  الكمية 15','1','0','0','0','34','productController.php?do=edit&id=34'); -- id=39
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('39', '382', '5775', '','0'); -- id=39
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '416878.45', 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 ('39', '121', '5775', '','0'); -- id=39
UPDATE accountstree SET name = 'حساب وسيط للارصدة الافتتاحية', customName = 'حساب وسيط للارصدة الافتتاحية', customNameEn = 'Paid Capital', nameEn = 'Paid Capital', parent = '119', accountNature = '1', theValue = '-444159.3', 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 = 'قطعه عدسات 18وات متحرك باندا ', productDescription = '', productCatId = '8', productBuyPrice = '385.00', productSellAllPrice = '395.00', productSellUnitPrice = '435.00', productSellHalfPrice = '400.00', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '5', parcode = '00034',type ='0', expireDate = '0' , dailyentryId = '39',isService = '0',isOptic = '0',lastbuyprice = '385',lastbuyprice_withDiscount = '385',meanbuyprice = '385',meanbuyprice_withDiscount = '385' , productbuypricereal = '385' , buypricereal_precentage = '0' , buytotal_precentage = '2.6' , buyhalf_precentage = '3.9' , buypart_precentage = '12.99',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='385',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',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='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='385',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '34';
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 ('تراك 10 وات باندا ','','8','255','265','295','265','2026-09-13','0','1','10','','0','0','0','0','0','255','255','255','255','255','0','3.92','3.92','15.69','.','0','0','0','255','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','255','255','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','255','0','0','0','0','0','0','','','0','0','0','0'); -- id=35
UPDATE product SET productName = 'تراك 10 وات باندا ', productDescription = '', productCatId = '8', productBuyPrice = '255', productSellAllPrice = '265', productSellUnitPrice = '295', productSellHalfPrice = '265', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '10', parcode = '00035',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '255',lastbuyprice_withDiscount = '255',meanbuyprice = '255',meanbuyprice_withDiscount = '255' , productbuypricereal = '255' , buypricereal_precentage = '0' , buytotal_precentage = '3.92' , buyhalf_precentage = '3.92' , buypart_precentage = '15.69',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='255',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='255',meanbuyprice_withTax='255',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='255',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '35';
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', '35', '1.00', '2026-09-13', '1', '0','0003501','265','265','295','255','','0','0','0','0','0','0','0','0','0','0'); -- id=35
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('35', '1', '36', '1', '2026-09-13'); -- id=35
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('35', '1', '36', '0', '35', 'إضافة منتج', 'productController.php', '0', '36', '1', '2026-09-13','0','0'); -- id=36
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (35, 1,'2026-09-13 18:42:04',1)
                ON DUPLICATE KEY UPDATE productid = 35, edited = 1, sysdate = '2026-09-13 18:42:04', userid = 1; -- id=35
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '9180', '9180', '2026-09-13', '1', '0', '0', '2026-09-13 18:42:04','إضافة منتج تراك 10 وات باندا  الكمية 36','1','0','0','0','35','productController.php?do=edit&id=35'); -- id=40
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('40', '382', '9180', '','0'); -- id=40
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '426058.45', 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 ('40', '121', '9180', '','0'); -- id=40
UPDATE accountstree SET name = 'حساب وسيط للارصدة الافتتاحية', customName = 'حساب وسيط للارصدة الافتتاحية', customNameEn = 'Paid Capital', nameEn = 'Paid Capital', parent = '119', accountNature = '1', theValue = '-434979.3', 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 = 'تراك 10 وات باندا ', productDescription = '', productCatId = '8', productBuyPrice = '255.00', productSellAllPrice = '265.00', productSellUnitPrice = '295.00', productSellHalfPrice = '265.00', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '10', parcode = '00035',type ='0', expireDate = '0' , dailyentryId = '40',isService = '0',isOptic = '0',lastbuyprice = '255',lastbuyprice_withDiscount = '255',meanbuyprice = '255',meanbuyprice_withDiscount = '255' , productbuypricereal = '255' , buypricereal_precentage = '0' , buytotal_precentage = '3.92' , buyhalf_precentage = '3.92' , buypart_precentage = '15.69',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='255',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='255',meanbuyprice_withTax='255',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='255',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '35';
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 ('تراك 20 وات باندا ','','8','352','365','395','365','2026-09-13','0','1','5','','0','0','0','0','0','352','352','352','352','352','0','3.69','3.69','12.22','.','0','0','0','352','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','352','352','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','352','0','0','0','0','0','0','','','0','0','0','0'); -- id=36
UPDATE product SET productName = 'تراك 20 وات باندا ', productDescription = '', productCatId = '8', productBuyPrice = '352', productSellAllPrice = '365', productSellUnitPrice = '395', productSellHalfPrice = '365', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '5', parcode = '00036',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '352',lastbuyprice_withDiscount = '352',meanbuyprice = '352',meanbuyprice_withDiscount = '352' , productbuypricereal = '352' , buypricereal_precentage = '0' , buytotal_precentage = '3.69' , buyhalf_precentage = '3.69' , buypart_precentage = '12.22',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='352',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='352',meanbuyprice_withTax='352',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='352',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '36';
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', '36', '1.00', '2026-09-13', '1', '0','0003601','365','365','395','352','','0','0','0','0','0','0','0','0','0','0'); -- id=36
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('36', '1', '16', '1', '2026-09-13'); -- id=36
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('36', '1', '16', '0', '36', 'إضافة منتج', 'productController.php', '0', '16', '1', '2026-09-13','0','0'); -- id=37
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (36, 1,'2026-09-13 18:42:06',1)
                ON DUPLICATE KEY UPDATE productid = 36, edited = 1, sysdate = '2026-09-13 18:42:06', userid = 1; -- id=36
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '5632', '5632', '2026-09-13', '1', '0', '0', '2026-09-13 18:42:06','إضافة منتج تراك 20 وات باندا  الكمية 16','1','0','0','0','36','productController.php?do=edit&id=36'); -- id=41
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('41', '382', '5632', '','0'); -- id=41
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '431690.45', 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 ('41', '121', '5632', '','0'); -- id=41
UPDATE accountstree SET name = 'حساب وسيط للارصدة الافتتاحية', customName = 'حساب وسيط للارصدة الافتتاحية', customNameEn = 'Paid Capital', nameEn = 'Paid Capital', parent = '119', accountNature = '1', theValue = '-429347.3', 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 = 'تراك 20 وات باندا ', productDescription = '', productCatId = '8', productBuyPrice = '352.00', productSellAllPrice = '365.00', productSellUnitPrice = '395.00', productSellHalfPrice = '365.00', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '5', parcode = '00036',type ='0', expireDate = '0' , dailyentryId = '41',isService = '0',isOptic = '0',lastbuyprice = '352',lastbuyprice_withDiscount = '352',meanbuyprice = '352',meanbuyprice_withDiscount = '352' , productbuypricereal = '352' , buypricereal_precentage = '0' , buytotal_precentage = '3.69' , buyhalf_precentage = '3.69' , buypart_precentage = '12.22',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='352',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='352',meanbuyprice_withTax='352',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='352',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '36';
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 ('قطعه عدسات 18 وات ثابت ','','8','275','295','325','295','2026-09-13','0','1','5','','0','0','0','0','0','275','275','275','275','275','0','7.27','7.27','18.18','.','0','0','0','275','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','275','275','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','275','0','0','0','0','0','0','','','0','0','0','0'); -- id=37
UPDATE product SET productName = 'قطعه عدسات 18 وات ثابت ', productDescription = '', productCatId = '8', productBuyPrice = '275', productSellAllPrice = '295', productSellUnitPrice = '325', productSellHalfPrice = '295', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '5', parcode = '00037',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '275',lastbuyprice_withDiscount = '275',meanbuyprice = '275',meanbuyprice_withDiscount = '275' , productbuypricereal = '275' , buypricereal_precentage = '0' , buytotal_precentage = '7.27' , buyhalf_precentage = '7.27' , buypart_precentage = '18.18',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='275',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',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='275',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='275',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '37';
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', '37', '1.00', '2026-09-13', '1', '0','0003701','295','295','325','275','','0','0','0','0','0','0','0','0','0','0'); -- id=37
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('37', '1', '13', '1', '2026-09-13'); -- id=37
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('37', '1', '13', '0', '37', 'إضافة منتج', 'productController.php', '0', '13', '1', '2026-09-13','0','0'); -- id=38
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (37, 1,'2026-09-13 18:42:08',1)
                ON DUPLICATE KEY UPDATE productid = 37, edited = 1, sysdate = '2026-09-13 18:42:08', userid = 1; -- id=37
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '3575', '3575', '2026-09-13', '1', '0', '0', '2026-09-13 18:42:08','إضافة منتج قطعه عدسات 18 وات ثابت  الكمية 13','1','0','0','0','37','productController.php?do=edit&id=37'); -- id=42
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('42', '382', '3575', '','0'); -- id=42
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '435265.45', 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 ('42', '121', '3575', '','0'); -- id=42
UPDATE accountstree SET name = 'حساب وسيط للارصدة الافتتاحية', customName = 'حساب وسيط للارصدة الافتتاحية', customNameEn = 'Paid Capital', nameEn = 'Paid Capital', parent = '119', accountNature = '1', theValue = '-425772.3', 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 = 'قطعه عدسات 18 وات ثابت ', productDescription = '', productCatId = '8', productBuyPrice = '275.00', productSellAllPrice = '295.00', productSellUnitPrice = '325.00', productSellHalfPrice = '295.00', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '5', parcode = '00037',type ='0', expireDate = '0' , dailyentryId = '42',isService = '0',isOptic = '0',lastbuyprice = '275',lastbuyprice_withDiscount = '275',meanbuyprice = '275',meanbuyprice_withDiscount = '275' , productbuypricereal = '275' , buypricereal_precentage = '0' , buytotal_precentage = '7.27' , buyhalf_precentage = '7.27' , buypart_precentage = '18.18',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='275',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',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='275',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='275',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '37';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 15:12:10";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 18:42:10", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-09-13 18:42:10', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productController.php'); -- id=189
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 15:13:52";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 18:43:52", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-09-13 18:43:52', '1', 'bill', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=190
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 15:14:11";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 18:44:12", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-09-13 18:44:12', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productController.php'); -- id=191
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 15:16:32";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 18:46:32", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-09-13 18:46:33', '1', 'add', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productController.php?do=add'); -- id=192
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 ('مفتاح كونله 100 امبير','','1','1990','2050','2250','2050','2026-09-13','0','1','0','','0','0','0','0','0','1990','1990','1990','1990','1990','0','3.02','3.02','13.07','.','0','0','0','1990','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','1990','1990','0','0','0','0','0','0','0','0','0','0','0','0','-1','0','','1990','0','0','0','0','0','0','','','0','0','0','0'); -- id=38
UPDATE product SET productName = 'مفتاح كونله 100 امبير', productDescription = '', productCatId = '1', productBuyPrice = '1990', productSellAllPrice = '2050', productSellUnitPrice = '2250', productSellHalfPrice = '2050', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '0', parcode = '00038',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '1990',lastbuyprice_withDiscount = '1990',meanbuyprice = '1990',meanbuyprice_withDiscount = '1990' , productbuypricereal = '1990' , buypricereal_precentage = '0' , buytotal_precentage = '3.02' , buyhalf_precentage = '3.02' , buypart_precentage = '13.07',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='1990',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='1990',meanbuyprice_withTax='1990',price4='0',price5='0',price6='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='1990',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '38';
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', '38', '1.00', '2026-09-13', '1', '0','0003801','2050','2050','2250','1990','','0','0','0','0','0','0','0','0','0','0'); -- id=38
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('38', '1', '1', '1', '2026-09-13'); -- id=38
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('38', '1', '1', '0', '38', 'إضافة منتج', 'productController.php', '0', '1', '1', '2026-09-13','0','0'); -- id=39
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (38, 1,'2026-09-13 18:46:34',1)
                ON DUPLICATE KEY UPDATE productid = 38, edited = 1, sysdate = '2026-09-13 18:46:34', userid = 1; -- id=38
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '1990', '1990', '2026-09-13', '1', '0', '0', '2026-09-13 18:46:34','إضافة منتج مفتاح كونله 100 امبير الكمية 1','1','0','0','0','38','productController.php?do=edit&id=38'); -- id=43
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('43', '382', '1990', '','0'); -- id=43
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '437255.45', 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 ('43', '121', '1990', '','0'); -- id=43
UPDATE accountstree SET name = 'حساب وسيط للارصدة الافتتاحية', customName = 'حساب وسيط للارصدة الافتتاحية', customNameEn = 'Paid Capital', nameEn = 'Paid Capital', parent = '119', accountNature = '1', theValue = '-423782.3', 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 = 'مفتاح كونله 100 امبير', productDescription = '', productCatId = '1', productBuyPrice = '1990.00', productSellAllPrice = '2050.00', productSellUnitPrice = '2250.00', productSellHalfPrice = '2050.00', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '0', parcode = '00038',type ='0', expireDate = '0' , dailyentryId = '43',isService = '0',isOptic = '0',lastbuyprice = '1990',lastbuyprice_withDiscount = '1990',meanbuyprice = '1990',meanbuyprice_withDiscount = '1990' , productbuypricereal = '1990' , buypricereal_precentage = '0' , buytotal_precentage = '3.02' , buyhalf_precentage = '3.02' , buypart_precentage = '13.07',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='1990',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='1990',meanbuyprice_withTax='1990',price4='0',price5='0',price6='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='1990',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '38';
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 امبير ','','1','2720','2800','3050','2800','2026-09-13','0','1','0','','0','0','0','0','0','2720','2720','2720','2720','2720','0','2.94','2.94','12.13','.','0','0','0','2720','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','2720','2720','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','2720','0','0','0','0','0','0','','','0','0','0','0'); -- id=39
UPDATE product SET productName = 'مفتاح كوتله 160 امبير ', productDescription = '', productCatId = '1', productBuyPrice = '2720', productSellAllPrice = '2800', productSellUnitPrice = '3050', productSellHalfPrice = '2800', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '0', parcode = '00039',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '2720',lastbuyprice_withDiscount = '2720',meanbuyprice = '2720',meanbuyprice_withDiscount = '2720' , productbuypricereal = '2720' , buypricereal_precentage = '0' , buytotal_precentage = '2.94' , buyhalf_precentage = '2.94' , buypart_precentage = '12.13',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='2720',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='2720',meanbuyprice_withTax='2720',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='2720',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '39';
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', '39', '1.00', '2026-09-13', '1', '0','0003901','2800','2800','3050','2720','','0','0','0','0','0','0','0','0','0','0'); -- id=39
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('39', '1', '0', '1', '2026-09-13'); -- id=39
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('39', '1', '0', '0', '39', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-09-13','0','0'); -- id=40
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (39, 1,'2026-09-13 18:46:36',1)
                ON DUPLICATE KEY UPDATE productid = 39, edited = 1, sysdate = '2026-09-13 18:46:36', userid = 1; -- id=39
UPDATE product SET productName = 'مفتاح كوتله 160 امبير ', productDescription = '', productCatId = '1', productBuyPrice = '2720.00', productSellAllPrice = '2800.00', productSellUnitPrice = '3050.00', productSellHalfPrice = '2800.00', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '0', parcode = '00039',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '2720',lastbuyprice_withDiscount = '2720',meanbuyprice = '2720',meanbuyprice_withDiscount = '2720' , productbuypricereal = '2720' , buypricereal_precentage = '0' , buytotal_precentage = '2.94' , buyhalf_precentage = '2.94' , buypart_precentage = '12.13',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='2720',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='2720',meanbuyprice_withTax='2720',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='2720',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '39';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 15:16:38";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 18:46:38", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-09-13 18:46:38', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productController.php'); -- id=193
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:08:25";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 19:38:25", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-09-13 19:38:25', '1', 'bill', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=194
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:08:46";
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-09-13 16:08:49";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 19:38:51", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-09-13 19:38:51', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/index.php'); -- id=195
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-09-13 16:08:52";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-09-13 19:38:55', '1', 'handleExpiredCards', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=196
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:09:01";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 19:39:01", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-09-13 19:39:01', '1', 'bill', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=197
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:11:12";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 19:41:12", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-09-13 19:41:12', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productController.php?do=show'); -- id=198
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:11:22";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 19:41:22", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-09-13 19:41:22', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productController.php?do=show'); -- id=199
UPDATE product SET productName = 'مفتاح كوتله100 امبير', productDescription = '', productCatId = '1', productBuyPrice = '1990.00', productSellAllPrice = '2050.00', productSellUnitPrice = '2250.00', productSellHalfPrice = '2050.00', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '0', parcode = '00038',type ='0', expireDate = '0' , dailyentryId = '43',isService = '0',isOptic = '0',lastbuyprice = '1990.00',lastbuyprice_withDiscount = '1990',meanbuyprice = '1990.00',meanbuyprice_withDiscount = '1990' , productbuypricereal = '1990.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '3.02' , buyhalf_precentage = '3.02' , buypart_precentage = '13.07',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='1990',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='1990',meanbuyprice_withTax='1990',price4='0',price5='0',price6='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='1990',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '38';
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (38, 1,'2026-09-13 19:41:49',1)
                ON DUPLICATE KEY UPDATE productid = 38, edited = 1, sysdate = '2026-09-13 19:41:49', userid = 1; -- id=38
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:11:56";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 19:41:56", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-09-13 19:41:56', '1', 'bill', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=200
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:13:46";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 19:43:46", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-09-13 19:43:46', '1', 'add', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/buyBillController.php?do=add'); -- id=201
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 ('06aa6e06515f75', '2026-09-13 19:41:57', '3', '403597.00', '413605', '0', '0', '10008.00',  '10008.00', '0', '10008', '1', '2026-09-13 19:43:46', '', '1', '0', '', '1','1','1','0.00','-1','0','0','1','0','0','.','0','0','0','0','0',''); -- id=1
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 ('00038', '1', '1', '38', '2', '2113', '4226.00', '0', '', '2026-09-13 19:43:46', '38','','','0','0','0','0','0',null,'2113','4226','0','0','0','0','0','0','0','0','1'); -- id=1
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-13 19:41:57', 1, 38, 0, 0
                    , 2113, 2, 0, 0, 1, '2026-09-13 19:43:47')
                ON DUPLICATE KEY UPDATE buyprice = 2113,
                        buyQuantity =buyQuantity+2, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-09-13 19:43:47' ; -- id=1
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('38', '2113', '2', '0', 'buyBillController.php', '1', '', '0', '0'); -- id=1
UPDATE product SET  productBuyPrice = "2113" WHERE productId = 38 ;
UPDATE buybilldetail SET  quantitybefore = 1 WHERE buybilldetailid = 1 ;
UPDATE product SET productName = 'مفتاح كوتله100 امبير', productDescription = '', productCatId = '1', productBuyPrice = '2113.00', productSellAllPrice = '2050.00', productSellUnitPrice = '2250.00', productSellHalfPrice = '2050.00', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '0', parcode = '00038',type ='0', expireDate = '0' , dailyentryId = '43',isService = '0',isOptic = '0',lastbuyprice = '2113',lastbuyprice_withDiscount = '2113',meanbuyprice = '2072',meanbuyprice_withDiscount = '2072' , productbuypricereal = '1990.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '3.02' , buyhalf_precentage = '3.02' , buypart_precentage = '13.07',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='1990',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='2113',meanbuyprice_withTax='2072',price4='0',price5='0',price6='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='2113',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '38';
UPDATE buybilldetail SET  lastbuyprice = 2113 , meanbuyprice = 2072, lastbuyprice_withDiscount = 2113, meanbuyprice_withDiscount = 2072
        , lastbuyprice_withTax = 2113, meanbuyprice_withTax = 2072, lastbuyprice_withDiscountAndTax = 2113
                where buybilldetailid = 1;
UPDATE productunit SET proUnitBuyPrice  = 2113 * productnumber WHERE productid = 38;
UPDATE storedetail SET  productquantity = '3', userid = '1', storedetaildate = '2026-09-13' WHERE storedetailid = '38';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('38', '1', '2', '0', '1', 'اضافة فاتورة مشتريات', 'buyBillController.php', '1', '3', '1', '2026-09-13 19:41:57','0','0'); -- id=41
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 ('00039', '1', '1', '39', '2', '2891', '5782.00', '0', '', '2026-09-13 19:43:46', '39','','','0','0','0','0','0',null,'2891','5782','0','0','0','0','0','0','0','0','1'); -- id=2
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-13 19:41:57', 1, 39, 0, 0
                    , 2891, 2, 0, 0, 1, '2026-09-13 19:43:48')
                ON DUPLICATE KEY UPDATE buyprice = 2891,
                        buyQuantity =buyQuantity+2, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-09-13 19:43:48' ; -- id=2
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('39', '2891', '2', '0', 'buyBillController.php', '2', '', '0', '0'); -- id=2
UPDATE product SET  productBuyPrice = "2891" WHERE productId = 39 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 2 ;
UPDATE product SET productName = 'مفتاح كوتله 160 امبير ', productDescription = '', productCatId = '1', productBuyPrice = '2891.00', productSellAllPrice = '2800.00', productSellUnitPrice = '3050.00', productSellHalfPrice = '2800.00', productDate = '2026-09-13', conditions = '0', userId = '1', limitamount = '0', parcode = '00039',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '2891',lastbuyprice_withDiscount = '2891',meanbuyprice = '2891',meanbuyprice_withDiscount = '2891' , productbuypricereal = '2720.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '2.94' , buyhalf_precentage = '2.94' , buypart_precentage = '12.13',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='2720',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='2891',meanbuyprice_withTax='2891',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='2891',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '39';
UPDATE buybilldetail SET  lastbuyprice = 2891 , meanbuyprice = 2891, lastbuyprice_withDiscount = 2891, meanbuyprice_withDiscount = 2891
        , lastbuyprice_withTax = 2891, meanbuyprice_withTax = 2891, lastbuyprice_withDiscountAndTax = 2891
                where buybilldetailid = 2;
UPDATE productunit SET proUnitBuyPrice  = 2891 * productnumber WHERE productid = 39;
UPDATE storedetail SET  productquantity = '2', userid = '1', storedetaildate = '2026-09-13' WHERE storedetailid = '39';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('39', '1', '2', '0', '1', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '2', '1', '2026-09-13 19:41:57','0','0'); -- id=42
UPDATE supplier SET  suppliercurrentDebt = '413605',suppliercurrentDebtInCurrency= '413605' , userid = '1', supplierdate = '2026-09-13 19:43:46'   WHERE supplierid = '3';
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 ('3', '403597.00', '10008', '0', 'اضافة فاتورة مشتريات', '1', '413605', '2026-09-13 19:41:57', '1', 'buyBillController.php', 'اضافة فاتورة مشتريات', '0','', '0','1','1','10008','1','403597','10008','413605','0',''); -- id=7
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '10008', '10008', '2026-09-13', '1', '0', '0', '2026-09-13 19:43:49','اضافة فاتورة مشتريات رقم 1','1','0',null,'0','1','buyBillController.php?do=details&id=1'); -- id=44
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('44', '382', '10008', '','0'); -- id=44
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '447263.45', 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 ('44', '421', '10008', '','0'); -- id=44
UPDATE accountstree SET name = 'كيون حساب نشات', customName = 'كيون حساب نشات', customNameEn = 'كيون حساب نشات', nameEn = 'كيون حساب نشات', parent = '81', accountNature = '1', theValue = '413605', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-13 15:58:35' WHERE id = '421';
update buybill set dailyentryid='44,0' where buybillid=1;
COMMIT;
UPDATE product SET overAllAveragePrice = 2113 WHERE productId = 38;UPDATE product SET overAllAveragePrice = 2891 WHERE productId = 39;;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:13:50";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 19:43:50", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-09-13 19:43:50', '1', 'editprint', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/buyBillController.php?do=editprint&id=1'); -- id=202
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:14:07";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 19:44:07", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-09-13 19:44:07', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productController.php?do=show'); -- id=203
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:14:14";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 19:44:14", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-09-13 19:44:14', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productController.php?do=show'); -- id=204
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:15:02";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 19:45:02", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierPayedDeptController.php', '2026-09-13 19:45:02', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/supplierPayedDeptController.php'); -- id=205
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:15:35";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 19:45:35", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierPayedDeptController.php', '2026-09-13 19:45:35', '1', 'add', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/supplierPayedDeptController.php?do=add'); -- id=206
BEGIN;
CALL supplierInUse(3,@supplierdebt,@suppliername,@dailyentryid,@treeIdis);
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 ('3', '413605.00', '50000', '1', 'ايصال دفع لمورد', '1', '363605', '2026-09-13 19:45:03', '1', 'supplierPayedDeptController.php', '', '0','1', '-1','1','1','50000','1','0','0','0','1',''); -- id=8
UPDATE supplierdebtchange SET supplierid = '3', supplierdebtchangebefore = '413605.00', supplierdebtchangeamount = '50000', supplierdebtchangetype = '1', processname = 'ايصال دفع لمورد', supplierdebtchangemodelid = '1', supplierdebtchangeafter = '363605', supplierdebtchangedate = '2026-09-13 19:45:03', userid = '1', tablename = 'supplierPayedDeptController.php', comment = '', dailyentryid = '0',saveid = '1',currencyId='1',conversionFactor='1',payedInCurrency='50000',saveConversionFactor='1',debtchangbeforeInSupplierCurrency='413605',debtchangamountInSupplierCurrency='50000',debtchangafterInSupplierCurrency='363605', paySerialNo='1',tagids='' WHERE supplierdebtchangeid = '8';
UPDATE supplier SET  suppliercurrentDebt = '363605',suppliercurrentDebtInCurrency= '363605' , userid = '1', supplierdate = '2026-09-13 19:45:35'   WHERE supplierid = '3';
UPDATE supplier SET  inUse = 0 where supplierid = 3;
UPDATE save SET  savecurrentvalue = '-50000',  userid = '1' WHERE saveid = '1';
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('0.00','50000', '1', '1', 'ايصال دفع لمورد', '8', '-50000', '2026-09-13 19:45:36', '1',  'supplierPayedDeptController.php','0','','0'); -- id=2
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '50000', '50000', '2026-09-13', '1', '0', '0', '2026-09-13 19:45:36','ايصال دفع لمورد ( كيون حساب نشات ) ','1','0','0','0','8','supplierReportsController.php?do=show&id=8'); -- id=45
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('45', '421', '50000', '','0'); -- id=45
UPDATE accountstree SET name = 'كيون حساب نشات', customName = 'كيون حساب نشات', customNameEn = 'كيون حساب نشات', nameEn = 'كيون حساب نشات', parent = '81', accountNature = '1', theValue = '363605', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-13 15:58:35' WHERE id = '421';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('45', '383', '50000', '','0'); -- id=45
UPDATE accountstree SET name = 'الخزنة الرئيسية', customName = 'الخزنة الرئيسية', customNameEn = 'الخزنة الرئيسية', nameEn = 'الخزنة الرئيسية', parent = '40', accountNature = '0', theValue = '-50000', 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';
UPDATE supplierdebtchange SET supplierid = '3', supplierdebtchangebefore = '413605.00', supplierdebtchangeamount = '50000.00', supplierdebtchangetype = '1', processname = 'ايصال دفع لمورد', supplierdebtchangemodelid = '1', supplierdebtchangeafter = '363605.00', supplierdebtchangedate = '2026-09-13 19:45:03', userid = '1', tablename = 'supplierPayedDeptController.php', comment = '', dailyentryid = '45',saveid = '1',currencyId='1',conversionFactor='1',payedInCurrency='50000',saveConversionFactor='1',debtchangbeforeInSupplierCurrency='413605',debtchangamountInSupplierCurrency='50000',debtchangafterInSupplierCurrency='363605', paySerialNo='1',tagids='' WHERE supplierdebtchangeid = '8';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:15:37";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 19:45:37", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierPayedDeptController.php', '2026-09-13 19:45:37', '1', 'sucess', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/supplierPayedDeptController.php?do=sucess'); -- id=207
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:15:39";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 19:45:39", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierPayedDeptController.php', '2026-09-13 19:45:39', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/supplierPayedDeptController.php?do=show'); -- id=208
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:15:39";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 19:45:40", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-09-13 19:45:40', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/supplierReportsController.php'); -- id=209
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:15:48";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 19:45:48", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierPayedDeptController.php', '2026-09-13 19:45:48', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/supplierPayedDeptController.php'); -- id=210
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:16:22";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 19:46:22", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierPayedDeptController.php', '2026-09-13 19:46:22', '1', 'add', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/supplierPayedDeptController.php?do=add'); -- id=211
BEGIN;
CALL supplierInUse(3,@supplierdebt,@suppliername,@dailyentryid,@treeIdis);
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 ('3', '363605.00', '2500', '1', 'ايصال دفع لمورد', '1', '361105', '2026-09-13 19:45:49', '1', 'supplierPayedDeptController.php', 'خصم 5 ف الميه 50000', '0','1', '-1','1','1','2500','1','0','0','0','2',''); -- id=9
UPDATE supplierdebtchange SET supplierid = '3', supplierdebtchangebefore = '363605.00', supplierdebtchangeamount = '2500', supplierdebtchangetype = '1', processname = 'ايصال دفع لمورد', supplierdebtchangemodelid = '1', supplierdebtchangeafter = '361105', supplierdebtchangedate = '2026-09-13 19:45:49', userid = '1', tablename = 'supplierPayedDeptController.php', comment = 'خصم 5 ف الميه 50000', dailyentryid = '0',saveid = '1',currencyId='1',conversionFactor='1',payedInCurrency='2500',saveConversionFactor='1',debtchangbeforeInSupplierCurrency='363605',debtchangamountInSupplierCurrency='2500',debtchangafterInSupplierCurrency='361105', paySerialNo='2',tagids='' WHERE supplierdebtchangeid = '9';
UPDATE supplier SET  suppliercurrentDebt = '361105',suppliercurrentDebtInCurrency= '361105' , userid = '1', supplierdate = '2026-09-13 19:46:22'   WHERE supplierid = '3';
UPDATE supplier SET  inUse = 0 where supplierid = 3;
UPDATE save SET  savecurrentvalue = '-52500',  userid = '1' WHERE saveid = '1';
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('-50000.00','2500', '1', '1', 'ايصال دفع لمورد', '9', '-52500', '2026-09-13 19:46:23', '1',  'supplierPayedDeptController.php','0','','0'); -- id=3
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '2500', '2500', '2026-09-13', '1', '0', '0', '2026-09-13 19:46:23','ايصال دفع لمورد ( كيون حساب نشات ) ','1','0','0','0','9','supplierReportsController.php?do=show&id=9'); -- id=46
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('46', '421', '2500', '','0'); -- id=46
UPDATE accountstree SET name = 'كيون حساب نشات', customName = 'كيون حساب نشات', customNameEn = 'كيون حساب نشات', nameEn = 'كيون حساب نشات', parent = '81', accountNature = '1', theValue = '361105', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-13 15:58:35' WHERE id = '421';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('46', '383', '2500', '','0'); -- id=46
UPDATE accountstree SET name = 'الخزنة الرئيسية', customName = 'الخزنة الرئيسية', customNameEn = 'الخزنة الرئيسية', nameEn = 'الخزنة الرئيسية', parent = '40', accountNature = '0', theValue = '-52500', 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';
UPDATE supplierdebtchange SET supplierid = '3', supplierdebtchangebefore = '363605.00', supplierdebtchangeamount = '2500.00', supplierdebtchangetype = '1', processname = 'ايصال دفع لمورد', supplierdebtchangemodelid = '1', supplierdebtchangeafter = '361105.00', supplierdebtchangedate = '2026-09-13 19:45:49', userid = '1', tablename = 'supplierPayedDeptController.php', comment = 'خصم 5 ف الميه 50000', dailyentryid = '46',saveid = '1',currencyId='1',conversionFactor='1',payedInCurrency='2500',saveConversionFactor='1',debtchangbeforeInSupplierCurrency='363605',debtchangamountInSupplierCurrency='2500',debtchangafterInSupplierCurrency='361105', paySerialNo='2',tagids='' WHERE supplierdebtchangeid = '9';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:16:23";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 19:46:23", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierPayedDeptController.php', '2026-09-13 19:46:24', '1', 'sucess', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/supplierPayedDeptController.php?do=sucess'); -- id=212
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:16:25";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 19:46:25", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierPayedDeptController.php', '2026-09-13 19:46:25', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/supplierPayedDeptController.php?do=show'); -- id=213
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:16:26";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 19:46:26", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-09-13 19:46:26', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/supplierReportsController.php'); -- id=214
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:16:52";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 19:46:52", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-09-13 19:46:52', '1', 'oneSupplier', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=215
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:16:57";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 19:46:57", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-09-13 19:46:57', '1', 'oneSupplier', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=216
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:17:10";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 19:47:10", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-09-13 19:47:10', '1', 'oneSupplier', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=217
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:17:19";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 19:47:19", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-09-13 19:47:19', '1', 'oneSupplier', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=218
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:17:32";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 19:47:32", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-09-13 19:47:32', '1', 'oneSupplier', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=219
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:17:44";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 19:47:44", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-09-13 19:47:44', '1', 'oneSupplier', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=220
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:18:14";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 19:48:14", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyreport.php', '2026-09-13 19:48:14', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/buyreport.php'); -- id=221
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:18:23";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 19:48:23", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyreport.php', '2026-09-13 19:48:23', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/buyreport.php'); -- id=222
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:18:55";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 19:48:55", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-09-13 19:48:55', '1', 'addsellBill', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=223
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:21:25";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 19:51:25", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillreportController.php', '2026-09-13 19:51:25', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/buyBillreportController.php'); -- id=224
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:21:25";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 19:51:26", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillreportController.php', '2026-09-13 19:51:26', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/buyBillreportController.php?do=show'); -- id=225
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:22:34";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 19:52:34", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillreportController.php', '2026-09-13 19:52:34', '1', 'details', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/buyBillreportController.php?do=details&id=1'); -- id=226
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:22:55";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 19:52:55", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-09-13 19:52:55', '1', 'oneSupplier', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=227
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:23:05";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 19:53:05", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-09-13 19:53:05', '1', 'oneSupplier', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=228
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:23:17";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 19:53:17", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-09-13 19:53:17', '1', 'oneSupplier', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=229
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:23:27";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 19:53:27", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-09-13 19:53:27', '1', 'addsellBill', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=230
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:24:10";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 19:54:10", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-09-13 19:54:10', '1', 'addAndRetuen', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/sellbillController.php?do=addAndRetuen'); -- id=231

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 06aa6e318425bc
-- ----------------------------------------------------------------------------------------------------

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-09-13 19:54:11', '06aa6e318425bc', '1', '0.00', '0', '0', '1', '4850.00', '4850', '4850', '0', '1', '2026-09-13 19:54:11', '', '1', '0', 'نقدي', '1', '0', '3', '0', 'نقدي', '2' ,'0','','','','','-1','0','0','0','0','0','4850','0','','0','0','4850','0','0','0','0','0','0','0','0','','','','0','','0','','0','-1','2026-09-13','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=1
UPDATE client SET  clientdebt = '0', userid = '1' 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','اضافة فاتورة مبيعات','1', '0', '2026-09-13 19:54:11', '1', 'sellbillController.php', 'اضافة فاتورة مبيعات', '4850', '0', null, '0', null, null,'', '0','1','1','0','1','2026-09-13 19:54:11','0','0','',''); -- id=1
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+1 where id = 1;
INSERT INTO sellbilldetail (buyprice, parcode, sellbillid, sellbilldetailcatid, sellbilldetailproductid, sellbilldetailquantity, sellbilldetailprice, sellbilldetailtotalprice, discountvalue, note, pricetype, sellbilldetaildate, productunitid, buydiscount, buydiscounttype,storeid,discounttype,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,onlineOrderId,pricetypepro,playstationPlayId,soldSerialsInDetails,buyPricesHistoryBookIdQuantity,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('2113','00038', '1', '1', '38', '1', '2050', '2050', '0', '', '0', '2026-09-13 19:54:12', '38', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','1-1,','1','1','0','0','2050','2050','0','','0','0.00','0','0','0','0'); -- id=1
UPDATE sellbilldetail SET  lastbuyprice = 2113.00 , meanbuyprice = 2072.00, lastbuyprice_withDiscount = 2113.00, meanbuyprice_withDiscount = 2072.00
        , lastbuyprice_withTax = 2113, meanbuyprice_withTax = 2072, lastbuyprice_withDiscountAndTax = 2113
                where sellbilldetailid = 1;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (38, '2026-09-13', 2050, 2113, 2113
                    , 2072, 2113, 2072, 2113
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1, 0, 2113, 2072, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2050, sellCostBuyPrice =sellCostBuyPrice+2113
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2113, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2072
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2113, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2072
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2113
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2113
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2072
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+1
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-09-13', 2050, 2113, 2113
                    , 2072, 2113, 2072, 2113
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2113, 2072, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2050, sellCostBuyPrice =sellCostBuyPrice+2113
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2113, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2072
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2113, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2072
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2113
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2113
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2072
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '2', userid = '1', storedetaildate = '2026-09-13 19:54:12' WHERE storedetailid = '38';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('38', '1', '1', '1', '1', 'اضافة فاتورة مبيعات', 'sellbillController.php', '3', '2', '1', '2026-09-13 19:54:12','0','0'); -- id=43
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+1 where id = 2;
INSERT INTO sellbilldetail (buyprice, parcode, sellbillid, sellbilldetailcatid, sellbilldetailproductid, sellbilldetailquantity, sellbilldetailprice, sellbilldetailtotalprice, discountvalue, note, pricetype, sellbilldetaildate, productunitid, buydiscount, buydiscounttype,storeid,discounttype,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,onlineOrderId,pricetypepro,playstationPlayId,soldSerialsInDetails,buyPricesHistoryBookIdQuantity,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('2891','00039', '1', '1', '39', '1', '2800', '2800', '0', '', '0', '2026-09-13 19:54:12', '39', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','2-1,','1','1','0','0','2800','2800','0','','0','0.00','0','0','0','0'); -- id=2
UPDATE sellbilldetail SET  lastbuyprice = 2891.00 , meanbuyprice = 2891.00, lastbuyprice_withDiscount = 2891.00, meanbuyprice_withDiscount = 2891.00
        , lastbuyprice_withTax = 2891, meanbuyprice_withTax = 2891, lastbuyprice_withDiscountAndTax = 2891
                where sellbilldetailid = 2;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (39, '2026-09-13', 2800, 2891, 2891
                    , 2891, 2891, 2891, 2891
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1, 0, 2891, 2891, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2800, sellCostBuyPrice =sellCostBuyPrice+2891
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2891, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2891
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2891, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2891
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2891
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2891
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2891
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+1
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-09-13', 2800, 2891, 2891
                    , 2891, 2891, 2891, 2891
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2891, 2891, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2800, sellCostBuyPrice =sellCostBuyPrice+2891
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2891, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2891
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2891, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2891
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2891
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2891
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2891
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = 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 = '1', storedetaildate = '2026-09-13 19:54:12' WHERE storedetailid = '39';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('39', '1', '1', '1', '1', 'اضافة فاتورة مبيعات', 'sellbillController.php', '2', '1', '1', '2026-09-13 19:54:12','0','0'); -- id=44
CALL saveInUse(1,@saveidis,@savecurrentvalueis,@currencyIdis,@treeIdis,@conversionFactoris);
UPDATE save SET  savecurrentvalue = '-47650',  userid = '1' WHERE saveid = '1';
UPDATE save SET  inUse = 0 where saveid = 1;
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('-52500','4850', '0', '1', 'اضافة فاتورة مبيعات', '1', '-47650', '2026-09-13 19:54:12', '1',  'sellbillController.php','1','','0'); -- id=4
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '4850', '4850', '2026-09-13', '1', '0', '0', '2026-09-13 19:54:14','اضافة فاتورة مبيعات رقم 1','1','0',null,'0','1','sellbillController.php?do=showDetail&sellbillid=1'); -- id=47
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('47', '383', '4850', '','0'); -- id=47
UPDATE accountstree SET name = 'الخزنة الرئيسية', customName = 'الخزنة الرئيسية', customNameEn = 'الخزنة الرئيسية', nameEn = 'الخزنة الرئيسية', parent = '40', accountNature = '0', theValue = '-47650', 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 ('47', '143', '4850', '','0'); -- id=47
UPDATE accountstree SET name = 'ايرادات المبيعات ', customName = 'ايرادات المبيعات ', customNameEn = 'Revenue of Sales', nameEn = 'Revenue of Sales', parent = '142', accountNature = '1', theValue = '4850', 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 ( '5004', '5004', '2026-09-13', '1', '0', '0', '2026-09-13 19:54:14','اضافة فاتورة مبيعات رقم 1 - صرف البضاعة من المخزن','1','0',null,'0','1','sellbillController.php?do=showDetail&sellbillid=1'); -- id=48
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('48', '402', '5004', '','0'); -- id=48
UPDATE accountstree SET name = 'تكلفة التشغيل', customName = 'تكلفة التشغيل', customNameEn = '', nameEn = '', parent = '160', accountNature = '0', theValue = '5004', 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 ('48', '382', '5004', '','0'); -- id=48
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '442259.45', 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='47,0,48' where sellbillid=1;
 INSERT INTO quickprofitday (theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES ('2026-09-13', 4850, 5004, 5004
                    , 4963, 5004, 4963, 5004
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,5004, 4963, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4850, sellCostBuyPrice =sellCostBuyPrice+5004
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+5004, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4963
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+5004, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+4963
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+5004
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+5004
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+4963
                        , returnSellVal = returnSellVal+0, 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-09-13', 4850, 5004, 5004
                    , 4963, 5004, 4963, 5004
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,5004, 4963, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4850, sellCostBuyPrice =sellCostBuyPrice+5004
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+5004, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4963
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+5004, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+4963
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+5004
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+5004
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+4963
                        , returnSellVal = returnSellVal+0, 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, 4850, 5004, 5004
                    , 4963, 5004, 4963, 5004, 5004, 4963)
                ON DUPLICATE KEY UPDATE netSellVal = netSellVal+4850, netSellCostBuyPrice = netSellCostBuyPrice+5004
                , netSellCostLastBuyPrice = netSellCostLastBuyPrice+5004
                , netSellCostMeanBuyPrice = netSellCostMeanBuyPrice+4963
                , netSellCostLastBuyPricewithDiscount = netSellCostLastBuyPricewithDiscount+5004
                , netSellCostMeanBuyPricewithDiscount = netSellCostMeanBuyPricewithDiscount+4963
                , netSellCostOverAllAveragePrice = netSellCostOverAllAveragePrice+5004
                , netSellCostLastBuyPricewithTax = netSellCostLastBuyPricewithTax+5004
                , netSellCostMeanBuyPricewithTax = netSellCostMeanBuyPricewithTax+4963;
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 06aa6e318425bc and sellbillId = 1 and returnsellbillId = 
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:24:15";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 19:54:16", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-09-13 19:54:16', '1', 'addsellBill', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=232
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:25:21";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 19:55:21", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-09-13 19:55:21', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productController.php?do=show'); -- id=233
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:25:27";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 19:55:27", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-09-13 19:55:27', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productController.php?do=show'); -- id=234
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:26:43";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 19:56:43", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-09-13 19:56:43', '1', 'edit', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productController.php?do=edit&id=38'); -- id=235
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:30:01";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 20:00:01", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('salesreport.php', '2026-09-13 20:00:01', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/salesreport.php'); -- id=236
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:30:14";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 20:00:14", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('salesreport.php', '2026-09-13 20:00:14', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/salesreport.php'); -- id=237
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:30:45";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 20:00:45", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('clientController.php', '2026-09-13 20:00:45', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/clientController.php?do=show'); -- id=238
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:30:55";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 20:00:55", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyreport.php', '2026-09-13 20:00:55', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/buyreport.php'); -- id=239
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:31:11";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 20:01:11", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('clientReportsController.php', '2026-09-13 20:01:11', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/clientReportsController.php'); -- id=240
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:31:13";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 20:01:13", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-09-13 20:01:13', '1', 'oneSupplier', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=241
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:31:25";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 20:01:25", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-09-13 20:01:25', '1', 'oneSupplier', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=242
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:32:19";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 20:02:19", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('clientController.php', '2026-09-13 20:02:19', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/clientController.php?do=show'); -- id=243
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:32:54";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 20:02:54", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('settlementstoreController.php', '2026-09-13 20:02:54', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/settlementstoreController.php?do=show'); -- id=244
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:33:31";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 20:03:31", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-09-13 20:03:31', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productController.php?do=show'); -- id=245
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:33:37";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 20:03:37", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-09-13 20:03:37', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productController.php?do=show'); -- id=246
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:33:44";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 20:03:45", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-09-13 20:03:45', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productController.php?do=show'); -- id=247
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:40:25";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 20:10:26", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-09-13 20:10:26', '1', 'addsellBill', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=248
INSERT INTO client (clientname, clientaddress, clientphone, clientmobile, clientdebt, clientdetails, conditions, clientdate, userid,clientareaid,clientcode,dailyentryid ,rondomtxt,clientStoreIds,obygyPatientId,debtLimit,typeclientid,priceTypeId,card_number,file_faida,specialDiscount,specialDiscountVal,file,addDate,mandobCollectRatio,webApiId,clientRFID,linkedSupplierId,postponeDays,studentid,taxnumber,password,clientTypeForTree,treeId,husbandNameObgy,txtNameE,facility,delegate,txtemail,commercial,valtaxnumber,clientaddress2,country,delegateid,datecustomeraccount,taxfile,fileimg,webStoreType,clientaddress3,tagids,email_verified,email_otp,email_otp_expiry) VALUES ('فؤاد الطوخي' , '', '', '', '0', '', '0', '2026-09-13 20:11:02', '1', '0','','0','','-10','0','10000',',','-1','0','.','0','0','.','2026-09-13','0','0','','0','0','0','','','0','0','','','','','','','','','','-1','','','','0','','','0','0',''); -- id=2
INSERT INTO tamweenclientdetail (clientid, noOfPersonsTamween, noOfPersonsDa3m, cardNum, cardPassword) VALUES ('2', '0', '0', '', ''); -- id=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 ('2','0','0','0','إضافة عميل جديد','2', '0', '2026-09-13 20:11:02', '1', 'clientController.php', '', '0', '0', null, '0', null, null,'', '0','1','1','0','1','','0','0','',''); -- id=2
INSERT INTO accountstree (name, customName, customNameEn, nameEn, parent, accountNature, theValue, theOrder, layingOrder, reportid, listId, notes, itemfrom, itemtype, itemtype2, itemtype3, userid, del, sysdate) VALUES ('فؤاد الطوخي', 'فؤاد الطوخي', 'فؤاد الطوخي', 'فؤاد الطوخي', '58', '0', '0', '0', '', '1', '1', '', '0', '3', '1', '', '1', '0', '2026-09-13 20:11:03'); -- id=426
UPDATE client SET clientname = 'فؤاد الطوخي', clientaddress = '', clientphone = '', clientmobile = '', clientdebt = '0.00', clientdetails = '', conditions = '0', clientdate = '2026-09-13', userid = '1'  , clientareaid = '0'  ,clientcode = '',dailyentryid = '0' , rondomtxt = '',clientStoreIds = '-10', obygyPatientId = '0' , debtLimit='10000' , typeclientid=',',priceTypeId='-1',lastEditUser = '0',card_number = '0',file_faida = '.',specialDiscount = '0',specialDiscountVal = '0',file = '.',mandobCollectRatio='0',webApiId ='0' ,clientRFID = '',linkedSupplierId = '0',postponeDays='0', studentid='0', taxnumber='', password='',clientTypeForTree='0',treeId='426',husbandNameObgy='',txtNameE='',facility='',delegate='',txtemail='',commercial='',valtaxnumber='',clientaddress2='',country='',delegateid='-1',datecustomeraccount='0000-00-00',taxfile='',fileimg='',webStoreType='0',clientaddress3='',tagids='',email_verified='0',email_otp='0',email_otp_expiry='0000-00-00 00:00:00' WHERE clientid = '2';
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:48:30";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 20:18:30", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-09-13 20:18:30', '1', 'addAndRetuen', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/sellbillController.php?do=addAndRetuen'); -- id=249

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 06aa6e712d2b4d
-- ----------------------------------------------------------------------------------------------------

BEGIN;
CALL clientInUse(2,@clientdebt,@clientname,@treeIdis);
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-09-13 20:18:31', '06aa6e712d2b4d', '2', '0.00', '0', '0', '1', '3858.60', '3858.6', '3858.6', '0', '1', '2026-09-13 20:18:31', '', '1', '0', 'فؤاد الطوخي', '1', '1', '3', '0', 'فؤاد الطوخي', '43' ,'0','','','','','-1','0','0','0','0','0','3858','0','','0','0','3858.6','0','0','0','0','0','0','0','0','','','','0','','0','','0','-1','2026-09-13','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=2
UPDATE client SET  clientdebt = '0', userid = '1' WHERE clientid = '2';
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 ('2','0.00','0','0','اضافة فاتورة مبيعات','2', '0', '2026-09-13 20:18:31', '1', 'sellbillController.php', 'اضافة فاتورة مبيعات', '3858.6', '0', null, '0', null, null,'', '0','1','1','0','1','2026-09-13 20:18:31','0','0','',''); -- id=3
UPDATE client SET  inUse = 0 where clientid = 2;
INSERT INTO sellbilldetail (buyprice, parcode, sellbillid, sellbilldetailcatid, sellbilldetailproductid, sellbilldetailquantity, sellbilldetailprice, sellbilldetailtotalprice, discountvalue, note, pricetype, sellbilldetaildate, productunitid, buydiscount, buydiscounttype,storeid,discounttype,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,onlineOrderId,pricetypepro,playstationPlayId,soldSerialsInDetails,buyPricesHistoryBookIdQuantity,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('34.8','00003', '2', '1', '3', '14', '34.9', '488.59999999999997', '0', '', '0', '2026-09-13 20:18:32', '3', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','','1','1','0','0','34.9','488.6','0','','0','0.00','0','0','0','0'); -- id=3
UPDATE sellbilldetail SET  lastbuyprice = 34.80 , meanbuyprice = 34.80, lastbuyprice_withDiscount = 34.80, meanbuyprice_withDiscount = 34.80
        , lastbuyprice_withTax = 34.8, meanbuyprice_withTax = 34.8, lastbuyprice_withDiscountAndTax = 34.8
                where sellbilldetailid = 3;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (3, '2026-09-13', 488.6, 487.2, 487.2
                    , 487.2, 487.2, 487.2, 487.2
                    , 0, 0, 0, 0
                    , 0, 0, 0, 14, 0, 487.2, 487.2, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+488.6, sellCostBuyPrice =sellCostBuyPrice+487.2
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+487.2, sellCostMeanBuyPrice = sellCostMeanBuyPrice+487.2
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+487.2, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+487.2
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+487.2
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+487.2
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+487.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
                        , 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-09-13', 488.6, 487.2, 487.2
                    , 487.2, 487.2, 487.2, 487.2
                    , 0, 0, 0, 0
                    , 0, 0, 0, 487.2, 487.2, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+488.6, sellCostBuyPrice =sellCostBuyPrice+487.2
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+487.2, sellCostMeanBuyPrice = sellCostMeanBuyPrice+487.2
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+487.2, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+487.2
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+487.2
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+487.2
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+487.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;
UPDATE storedetail SET  productquantity = '1796', userid = '1', storedetaildate = '2026-09-13 20:18:32' WHERE storedetailid = '3';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('3', '1', '14', '1', '2', 'اضافة فاتورة مبيعات', 'sellbillController.php', '1810', '1796', '1', '2026-09-13 20:18:32','0','0'); -- id=45
INSERT INTO sellbilldetail (buyprice, parcode, sellbillid, sellbilldetailcatid, sellbilldetailproductid, sellbilldetailquantity, sellbilldetailprice, sellbilldetailtotalprice, discountvalue, note, pricetype, sellbilldetaildate, productunitid, buydiscount, buydiscounttype,storeid,discounttype,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,onlineOrderId,pricetypepro,playstationPlayId,soldSerialsInDetails,buyPricesHistoryBookIdQuantity,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('84.46','00007', '2', '1', '7', '4', '84.5', '338', '0', '', '0', '2026-09-13 20:18:32', '7', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','','1','1','0','0','84.5','338','0','','0','0.00','0','0','0','0'); -- id=4
UPDATE sellbilldetail SET  lastbuyprice = 84.46 , meanbuyprice = 84.46, lastbuyprice_withDiscount = 84.46, meanbuyprice_withDiscount = 84.46
        , lastbuyprice_withTax = 84.46, meanbuyprice_withTax = 84.46, lastbuyprice_withDiscountAndTax = 84.46
                where sellbilldetailid = 4;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (7, '2026-09-13', 338, 337.84, 337.84
                    , 337.84, 337.84, 337.84, 337.84
                    , 0, 0, 0, 0
                    , 0, 0, 0, 4, 0, 337.84, 337.84, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+338, sellCostBuyPrice =sellCostBuyPrice+337.84
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+337.84, sellCostMeanBuyPrice = sellCostMeanBuyPrice+337.84
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+337.84, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+337.84
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+337.84
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+337.84
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+337.84
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+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-09-13', 338, 337.84, 337.84
                    , 337.84, 337.84, 337.84, 337.84
                    , 0, 0, 0, 0
                    , 0, 0, 0, 337.84, 337.84, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+338, sellCostBuyPrice =sellCostBuyPrice+337.84
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+337.84, sellCostMeanBuyPrice = sellCostMeanBuyPrice+337.84
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+337.84, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+337.84
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+337.84
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+337.84
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+337.84
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '151', userid = '1', storedetaildate = '2026-09-13 20:18:32' WHERE storedetailid = '7';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('7', '1', '4', '1', '2', 'اضافة فاتورة مبيعات', 'sellbillController.php', '155', '151', '1', '2026-09-13 20:18:32','0','0'); -- id=46
INSERT INTO sellbilldetail (buyprice, parcode, sellbillid, sellbilldetailcatid, sellbilldetailproductid, sellbilldetailquantity, sellbilldetailprice, sellbilldetailtotalprice, discountvalue, note, pricetype, sellbilldetaildate, productunitid, buydiscount, buydiscounttype,storeid,discounttype,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,onlineOrderId,pricetypepro,playstationPlayId,soldSerialsInDetails,buyPricesHistoryBookIdQuantity,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('306','00013', '2', '1', '13', '1', '308', '308', '0', '', '0', '2026-09-13 20:18:32', '13', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','','1','1','0','0','308','308','0','','0','0.00','0','0','0','0'); -- id=5
UPDATE sellbilldetail SET  lastbuyprice = 306.00 , meanbuyprice = 306.00, lastbuyprice_withDiscount = 306.00, meanbuyprice_withDiscount = 306.00
        , lastbuyprice_withTax = 306, meanbuyprice_withTax = 306, lastbuyprice_withDiscountAndTax = 306
                where sellbilldetailid = 5;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (13, '2026-09-13', 308, 306, 306
                    , 306, 306, 306, 306
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1, 0, 306, 306, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+308, sellCostBuyPrice =sellCostBuyPrice+306
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+306, sellCostMeanBuyPrice = sellCostMeanBuyPrice+306
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+306, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+306
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+306
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+306
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+306
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+1
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-09-13', 308, 306, 306
                    , 306, 306, 306, 306
                    , 0, 0, 0, 0
                    , 0, 0, 0, 306, 306, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+308, sellCostBuyPrice =sellCostBuyPrice+306
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+306, sellCostMeanBuyPrice = sellCostMeanBuyPrice+306
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+306, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+306
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+306
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+306
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+306
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = 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 = '1', storedetaildate = '2026-09-13 20:18:33' WHERE storedetailid = '13';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('13', '1', '1', '1', '2', 'اضافة فاتورة مبيعات', 'sellbillController.php', '22', '21', '1', '2026-09-13 20:18:33','0','0'); -- id=47
INSERT INTO sellbilldetail (buyprice, parcode, sellbillid, sellbilldetailcatid, sellbilldetailproductid, sellbilldetailquantity, sellbilldetailprice, sellbilldetailtotalprice, discountvalue, note, pricetype, sellbilldetaildate, productunitid, buydiscount, buydiscounttype,storeid,discounttype,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,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','00022', '2', '1', '22', '6', '192', '1152', '0', '', '0', '2026-09-13 20:18:33', '22', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','','1','1','0','0','192','1152','0','','0','0.00','0','0','0','0'); -- id=6
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 = 6;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (22, '2026-09-13', 1152, 1140, 1140
                    , 1140, 1140, 1140, 1140
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 1140, 1140, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1152, sellCostBuyPrice =sellCostBuyPrice+1140
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1140, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1140
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1140, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1140
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1140
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1140
                            , 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-09-13', 1152, 1140, 1140
                    , 1140, 1140, 1140, 1140
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1140, 1140, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1152, sellCostBuyPrice =sellCostBuyPrice+1140
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1140, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1140
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1140, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1140
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1140
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1140
                            , 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 = '6', userid = '1', storedetaildate = '2026-09-13 20:18:33' WHERE storedetailid = '22';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('22', '1', '6', '1', '2', 'اضافة فاتورة مبيعات', 'sellbillController.php', '12', '6', '1', '2026-09-13 20:18:33','0','0'); -- id=48
INSERT INTO sellbilldetail (buyprice, parcode, sellbillid, sellbilldetailcatid, sellbilldetailproductid, sellbilldetailquantity, sellbilldetailprice, sellbilldetailtotalprice, discountvalue, note, pricetype, sellbilldetaildate, productunitid, buydiscount, buydiscounttype,storeid,discounttype,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,onlineOrderId,pricetypepro,playstationPlayId,soldSerialsInDetails,buyPricesHistoryBookIdQuantity,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('63','00016', '2', '1', '16', '2', '64', '128', '0', '', '0', '2026-09-13 20:18:33', '16', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','','1','1','0','0','64','128','0','','0','0.00','0','0','0','0'); -- id=7
UPDATE sellbilldetail SET  lastbuyprice = 63.00 , meanbuyprice = 63.00, lastbuyprice_withDiscount = 63.00, meanbuyprice_withDiscount = 63.00
        , lastbuyprice_withTax = 63, meanbuyprice_withTax = 63, lastbuyprice_withDiscountAndTax = 63
                where sellbilldetailid = 7;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (16, '2026-09-13', 128, 126, 126
                    , 126, 126, 126, 126
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2, 0, 126, 126, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+128, sellCostBuyPrice =sellCostBuyPrice+126
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+126, sellCostMeanBuyPrice = sellCostMeanBuyPrice+126
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+126, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+126
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+126
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+126
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+126
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+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-09-13', 128, 126, 126
                    , 126, 126, 126, 126
                    , 0, 0, 0, 0
                    , 0, 0, 0, 126, 126, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+128, sellCostBuyPrice =sellCostBuyPrice+126
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+126, sellCostMeanBuyPrice = sellCostMeanBuyPrice+126
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+126, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+126
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+126
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+126
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+126
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '95', userid = '1', storedetaildate = '2026-09-13 20:18:33' WHERE storedetailid = '16';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('16', '1', '2', '1', '2', 'اضافة فاتورة مبيعات', 'sellbillController.php', '97', '95', '1', '2026-09-13 20:18:33','0','0'); -- id=49
INSERT INTO sellbilldetail (buyprice, parcode, sellbillid, sellbilldetailcatid, sellbilldetailproductid, sellbilldetailquantity, sellbilldetailprice, sellbilldetailtotalprice, discountvalue, note, pricetype, sellbilldetaildate, productunitid, buydiscount, buydiscounttype,storeid,discounttype,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,onlineOrderId,pricetypepro,playstationPlayId,soldSerialsInDetails,buyPricesHistoryBookIdQuantity,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('63','00012', '2', '1', '12', '6', '64', '384', '0', '', '0', '2026-09-13 20:18:33', '12', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','','1','1','0','0','64','384','0','','0','0.00','0','0','0','0'); -- id=8
UPDATE sellbilldetail SET  lastbuyprice = 63.00 , meanbuyprice = 63.00, lastbuyprice_withDiscount = 63.00, meanbuyprice_withDiscount = 63.00
        , lastbuyprice_withTax = 63, meanbuyprice_withTax = 63, lastbuyprice_withDiscountAndTax = 63
                where sellbilldetailid = 8;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (12, '2026-09-13', 384, 378, 378
                    , 378, 378, 378, 378
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 378, 378, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+384, sellCostBuyPrice =sellCostBuyPrice+378
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+378, sellCostMeanBuyPrice = sellCostMeanBuyPrice+378
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+378, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+378
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+378
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+378
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+378
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+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-09-13', 384, 378, 378
                    , 378, 378, 378, 378
                    , 0, 0, 0, 0
                    , 0, 0, 0, 378, 378, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+384, sellCostBuyPrice =sellCostBuyPrice+378
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+378, sellCostMeanBuyPrice = sellCostMeanBuyPrice+378
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+378, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+378
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+378
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+378
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+378
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '106', userid = '1', storedetaildate = '2026-09-13 20:18:34' WHERE storedetailid = '12';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('12', '1', '6', '1', '2', 'اضافة فاتورة مبيعات', 'sellbillController.php', '112', '106', '1', '2026-09-13 20:18:34','0','0'); -- id=50
INSERT INTO sellbilldetail (buyprice, parcode, sellbillid, sellbilldetailcatid, sellbilldetailproductid, sellbilldetailquantity, sellbilldetailprice, sellbilldetailtotalprice, discountvalue, note, pricetype, sellbilldetaildate, productunitid, buydiscount, buydiscounttype,storeid,discounttype,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,onlineOrderId,pricetypepro,playstationPlayId,soldSerialsInDetails,buyPricesHistoryBookIdQuantity,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('105','00006', '2', '1', '6', '10', '106', '1060', '0', '', '0', '2026-09-13 20:18:34', '6', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','','1','1','0','0','106','1060','0','','0','0.00','0','0','0','0'); -- id=9
UPDATE sellbilldetail SET  lastbuyprice = 105.00 , meanbuyprice = 105.00, lastbuyprice_withDiscount = 105.00, meanbuyprice_withDiscount = 105.00
        , lastbuyprice_withTax = 105, meanbuyprice_withTax = 105, lastbuyprice_withDiscountAndTax = 105
                where sellbilldetailid = 9;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (6, '2026-09-13', 1060, 1050, 1050
                    , 1050, 1050, 1050, 1050
                    , 0, 0, 0, 0
                    , 0, 0, 0, 10, 0, 1050, 1050, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1060, 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+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-09-13', 1060, 1050, 1050
                    , 1050, 1050, 1050, 1050
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1050, 1050, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1060, 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 = '187', userid = '1', storedetaildate = '2026-09-13 20:18:34' WHERE storedetailid = '6';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('6', '1', '10', '1', '2', 'اضافة فاتورة مبيعات', 'sellbillController.php', '197', '187', '1', '2026-09-13 20:18:34','0','0'); -- id=51
CALL saveInUse(1,@saveidis,@savecurrentvalueis,@currencyIdis,@treeIdis,@conversionFactoris);
UPDATE save SET  savecurrentvalue = '-43791.4',  userid = '1' WHERE saveid = '1';
UPDATE save SET  inUse = 0 where saveid = 1;
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('-47650','3858.6', '0', '1', 'اضافة فاتورة مبيعات', '2', '-43791.4', '2026-09-13 20:18:34', '1',  'sellbillController.php','2','','0'); -- id=5
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '3858.6', '3858.6', '2026-09-13', '1', '0', '0', '2026-09-13 20:18:34','اضافة فاتورة مبيعات رقم 2','1','0',null,'0','2','sellbillController.php?do=showDetail&sellbillid=2'); -- id=49
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('49', '426', '3858.6', '','0'); -- id=49
UPDATE accountstree SET name = 'فؤاد الطوخي', customName = 'فؤاد الطوخي', customNameEn = 'فؤاد الطوخي', nameEn = 'فؤاد الطوخي', parent = '58', accountNature = '0', theValue = '3858.6', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-13 20:11:03' WHERE id = '426';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('49', '143', '3858.6', '','0'); -- id=49
UPDATE accountstree SET name = 'ايرادات المبيعات ', customName = 'ايرادات المبيعات ', customNameEn = 'Revenue of Sales', nameEn = 'Revenue of Sales', parent = '142', accountNature = '1', theValue = '8708.6', 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 ( '3858.6', '3858.6', '2026-09-13', '1', '0', '0', '2026-09-13 20:18:34','اضافة فاتورة مبيعات رقم 2 - تحصيل الفاتورة من العميل','1','0',null,'0','2','sellbillController.php?do=showDetail&sellbillid=2'); -- id=50
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('50', '383', '3858.6', '','0'); -- id=50
UPDATE accountstree SET name = 'الخزنة الرئيسية', customName = 'الخزنة الرئيسية', customNameEn = 'الخزنة الرئيسية', nameEn = 'الخزنة الرئيسية', parent = '40', accountNature = '0', theValue = '-43791.4', 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 ('50', '426', '3858.6', '','0'); -- id=50
UPDATE accountstree SET name = 'فؤاد الطوخي', customName = 'فؤاد الطوخي', customNameEn = 'فؤاد الطوخي', nameEn = 'فؤاد الطوخي', parent = '58', accountNature = '0', theValue = '0', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-13 20:11:03' WHERE id = '426';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '3825.04', '3825.04', '2026-09-13', '1', '0', '0', '2026-09-13 20:18:34','اضافة فاتورة مبيعات رقم 2 - صرف البضاعة من المخزن','1','0',null,'0','2','sellbillController.php?do=showDetail&sellbillid=2'); -- id=51
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('51', '402', '3825.04', '','0'); -- id=51
UPDATE accountstree SET name = 'تكلفة التشغيل', customName = 'تكلفة التشغيل', customNameEn = '', nameEn = '', parent = '160', accountNature = '0', theValue = '8829.04', 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 ('51', '382', '3825.04', '','0'); -- id=51
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '438434.41', 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='49,50,51' where sellbillid=2;
 INSERT INTO quickprofitday (theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES ('2026-09-13', 3858.6, 3825.04, 3825.04
                    , 3825.04, 3825.04, 3825.04, 3825.04
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,3825.04, 3825.04, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3858.6, sellCostBuyPrice =sellCostBuyPrice+3825.04
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3825.04, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3825.04
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3825.04, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3825.04
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3825.04
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3825.04
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3825.04
                        , returnSellVal = returnSellVal+0, 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 (2, '2026-09-13', 3858.6, 3825.04, 3825.04
                    , 3825.04, 3825.04, 3825.04, 3825.04
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,3825.04, 3825.04, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3858.6, sellCostBuyPrice =sellCostBuyPrice+3825.04
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3825.04, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3825.04
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3825.04, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3825.04
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3825.04
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3825.04
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3825.04
                        , returnSellVal = returnSellVal+0, 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, 3858.6, 3825.04, 3825.04
                    , 3825.04, 3825.04, 3825.04, 3825.04, 3825.04, 3825.04)
                ON DUPLICATE KEY UPDATE netSellVal = netSellVal+3858.6, netSellCostBuyPrice = netSellCostBuyPrice+3825.04
                , netSellCostLastBuyPrice = netSellCostLastBuyPrice+3825.04
                , netSellCostMeanBuyPrice = netSellCostMeanBuyPrice+3825.04
                , netSellCostLastBuyPricewithDiscount = netSellCostLastBuyPricewithDiscount+3825.04
                , netSellCostMeanBuyPricewithDiscount = netSellCostMeanBuyPricewithDiscount+3825.04
                , netSellCostOverAllAveragePrice = netSellCostOverAllAveragePrice+3825.04
                , netSellCostLastBuyPricewithTax = netSellCostLastBuyPricewithTax+3825.04
                , netSellCostMeanBuyPricewithTax = netSellCostMeanBuyPricewithTax+3825.04;
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 06aa6e712d2b4d and sellbillId = 2 and returnsellbillId = 
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:48:36";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 20:18:36", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-09-13 20:18:36', '1', 'addsellBill', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=250
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:48:57";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 20:18:57", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('clientController.php', '2026-09-13 20:18:57', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/clientController.php?do=show'); -- id=251
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:49:13";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 20:19:13", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('clientController.php', '2026-09-13 20:19:13', '1', 'edit', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/clientController.php?do=edit&id=2'); -- id=252
UPDATE client SET inUse=0 WHERE clientid = 2;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:49:41";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 20:19:41", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-09-13 20:19:41', '1', 'addsellBill', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/sellbillController.php?do=addsellBill&billnameid=5'); -- id=253
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:52:00";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 20:22:00", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyreport.php', '2026-09-13 20:22:00', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/buyreport.php'); -- id=254
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:52:14";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 20:22:15", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyreport.php', '2026-09-13 20:22:15', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/buyreport.php'); -- id=255
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:53:04";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 20:23:04", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('clientController.php', '2026-09-13 20:23:04', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/clientController.php?do=show'); -- id=256
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:53:53";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 20:23:53", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-09-13 20:23:53', '1', 'bill', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=257
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:54:08";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 20:24:09", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-09-13 20:24:09', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/sellbillController.php?do=show'); -- id=258
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:54:24";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 20:24:24", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-09-13 20:24:24', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/sellbillController.php?do=show'); -- id=259
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:55:03";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 20:25:04", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-09-13 20:25:04', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/sellbillController.php?do=show'); -- id=260
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:55:26";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 20:25:26", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('clientReportsController.php', '2026-09-13 20:25:26', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/clientReportsController.php'); -- id=261
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:55:40";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 20:25:40", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('clientReportsController.php', '2026-09-13 20:25:41', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/clientReportsController.php?do=show'); -- id=262
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:55:49";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 20:25:49", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-09-13 20:25:49', '1', 'showDetail', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/sellbillController.php?do=showDetail&sellbillid=2'); -- id=263
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:56:39";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 20:26:39", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-09-13 20:26:39', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productController.php?do=show'); -- id=264
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:56:45";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 20:26:45", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-09-13 20:26:45', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productController.php?do=show'); -- id=265
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:57:34";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 20:27:34", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-09-13 20:27:34', '1', 'showoffers', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/sellbillController.php?do=showoffers'); -- id=266
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:58:19";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 20:28:19", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storedetailController.php', '2026-09-13 20:28:19', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/storedetailController.php'); -- id=267
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 16:58:31";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 20:28:31", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storedetailController.php', '2026-09-13 20:28:31', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/storedetailController.php?do=show'); -- id=268
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 17:00:54";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 20:30:54", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-09-13 20:30:54', '1', 'oneSupplier', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=269
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 17:01:11";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 20:31:11", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-09-13 20:31:12', '1', 'oneSupplier', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=270
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 17:01:18";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 20:31:18", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('clientReportsController.php', '2026-09-13 20:31:18', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/clientReportsController.php'); -- id=271
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 17:01:25";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 20:31:25", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('clientReportsController.php', '2026-09-13 20:31:26', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/clientReportsController.php?do=show'); -- id=272
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 17:01:29";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 20:31:30", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-09-13 20:31:30', '1', 'showDetail', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/sellbillController.php?do=showDetail&sellbillid=2'); -- id=273
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 17:01:57";
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-09-13 17:02:01";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 20:32:01", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-09-13 20:32:01', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/index.php'); -- id=274
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-09-13 17:02:03";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-09-13 20:32:03', '1', 'handleExpiredCards', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=275
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 17:03:03";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 20:33:03", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillreportController.php', '2026-09-13 20:33:03', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/buyBillreportController.php'); -- id=276
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 17:03:04";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 20:33:04", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillreportController.php', '2026-09-13 20:33:04', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/buyBillreportController.php?do=show'); -- id=277
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 17:03:08";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 20:33:08", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillreportController.php', '2026-09-13 20:33:08', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/buyBillreportController.php?do=show'); -- id=278
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 17:03:16";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 20:33:16", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillreportController.php', '2026-09-13 20:33:16', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/buyBillreportController.php?do=show'); -- id=279
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 17:03:22";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 20:33:22", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillreportController.php', '2026-09-13 20:33:22', '1', 'details', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/buyBillreportController.php?do=details&id=1'); -- id=280
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 17:03:38";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 20:33:38", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-09-13 20:33:38', '1', 'oneSupplier', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=281
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 17:18:47";
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-09-13 17:18:50";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 20:48:50", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-09-13 20:48:50', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/index.php'); -- id=282
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-09-13 17:18:51";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-09-13 20:48:51', '1', 'handleExpiredCards', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=283
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 17:18:57";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 20:48:57", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-09-13 20:48:57', '1', 'addsellBill', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/sellbillController.php?do=addsellBill&billnameid=5'); -- id=284
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 17:20:41";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 20:50:41", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-09-13 20:50:41', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productController.php?do=show'); -- id=285
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 17:20:48";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 20:50:48", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-09-13 20:50:48', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/productController.php?do=show'); -- id=286
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 17:28:10";
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-09-13 17:28:13";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 20:58:13", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-09-13 20:58:13', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/index.php'); -- id=287
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-09-13 17:28:15";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-09-13 20:58:15', '1', 'handleExpiredCards', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=288
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 17:29:57";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 20:59:57", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyreport.php', '2026-09-13 20:59:57', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/buyreport.php'); -- id=289
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 17:30:07";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 21:00:07", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('clientPayedDeptController.php', '2026-09-13 21:00:07', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/clientPayedDeptController.php?do=show'); -- id=290
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 17:30:18";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 21:00:18", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-09-13 21:00:18', '1', 'addsellBill', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/sellbillController.php?do=addsellBill&billnameid=5'); -- id=291
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 17:31:05";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 21:01:06", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-09-13 21:01:06', '1', 'oneSupplier', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=292
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 17:31:18";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 21:01:18", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-09-13 21:01:18', '1', 'oneSupplier', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=293
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 17:31:41";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 21:01:41", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-09-13 21:01:41', '1', 'oneSupplier', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=294
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 17:31:57";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 21:01:57", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('clientReportsController.php', '2026-09-13 21:01:57', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/clientReportsController.php'); -- id=295
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 17:32:12";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 21:02:12", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('clientReportsController.php', '2026-09-13 21:02:12', '1', 'show', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/clientReportsController.php?do=show'); -- id=296
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 17:32:20";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 21:02:20", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-09-13 21:02:20', '1', 'showDetail', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/sellbillController.php?do=showDetail&sellbillid=2'); -- id=297
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 18:48:32";
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-09-13 18:48:35";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 22:18:35", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-09-13 22:18:35', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/index.php'); -- id=298
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-09-13 18:48:36";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-09-13 22:18:36', '1', 'handleExpiredCards', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=299
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-09-13 18:48:45";
UPDATE user SET loginip = "::1", lastactivetime = "2026-09-13 22:18:45", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('clientReportsController.php', '2026-09-13 22:18:45', '1', '', '::1', 'DC:4A:3E:84:BB:DA', 'DESKTOP','https://localhost:8080/erp/controllers/clientReportsController.php'); -- id=300
