-- ALTER TABLE erp1.accountmovement AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.accountmovementkind AUTO_INCREMENT = 4;
-- ALTER TABLE erp1.accountstree AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.accountstreefromprog AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.accountstreesetting AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.ads AUTO_INCREMENT = ;
-- ALTER TABLE erp1.area AUTO_INCREMENT = ;
-- ALTER TABLE erp1.assets AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.assetscat AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.assetssale AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.availableparcode AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.bank AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.bankaccount AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.beneficiaries AUTO_INCREMENT = ;
-- ALTER TABLE erp1.beneficiaries_eco AUTO_INCREMENT = ;
-- ALTER TABLE erp1.beneficiaries_family AUTO_INCREMENT = ;
-- ALTER TABLE erp1.billname AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.billoperation AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.billprint AUTO_INCREMENT = ;
-- ALTER TABLE erp1.billprinter AUTO_INCREMENT = ;
-- ALTER TABLE erp1.billproperty AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.bills AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.billsbuy AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.billsettings AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.billsproducts AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.billsproductsbuy AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.billsreturn AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.billsreturnproducts AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.billtemplate AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.billtemplatedetail AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.bind AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.bindsettlement AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.boarding AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.branch AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.buyandruternbill AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.buyandruternbillcurr AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.buyandruternbilldetail AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.buybill AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.buybillcurr AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.buybilldetail AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.buybilldetailoffer AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.buybilloffer AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.buypriceshistorybook AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.capital AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.carfile AUTO_INCREMENT = ;
-- ALTER TABLE erp1.carreview AUTO_INCREMENT = ;
-- ALTER TABLE erp1.carreviewer AUTO_INCREMENT = ;
-- ALTER TABLE erp1.cars AUTO_INCREMENT = ;
-- ALTER TABLE erp1.cartracking AUTO_INCREMENT = ;
-- ALTER TABLE erp1.cashtransfer AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.charities AUTO_INCREMENT = ;
-- ALTER TABLE erp1.charitiescenter AUTO_INCREMENT = ;
-- ALTER TABLE erp1.charitysearchlog AUTO_INCREMENT = ;
-- ALTER TABLE erp1.checkcontroller AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.checkdeposit AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.checkwithdrawal AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.claimdebts AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.claimreturnsellbills AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.claims AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.claimsclientbills AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.claimsellbills AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.claimstypeclients AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.client AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.clientarea AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.clientdebtchange AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.clientpaymentreceiptt AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.clientproductreview AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.clinic AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.collectedparcodestemp AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.commentclient AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.costcenter AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.costcenterdetail AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.country AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.coupons AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.currency AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.dailyentry AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.dailyentrycreditor AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.dailyentrydebtor AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.damagedproduct AUTO_INCREMENT = ;
-- ALTER TABLE erp1.datedchecked AUTO_INCREMENT = ;
-- ALTER TABLE erp1.discountcontrol AUTO_INCREMENT = ;
-- ALTER TABLE erp1.disease AUTO_INCREMENT = ;
-- ALTER TABLE erp1.doctorkashf AUTO_INCREMENT = ;
-- ALTER TABLE erp1.dollarearnings AUTO_INCREMENT = ;
-- ALTER TABLE erp1.ebillsetting AUTO_INCREMENT = ;
-- ALTER TABLE erp1.eclientsetting AUTO_INCREMENT = ;
-- ALTER TABLE erp1.employee AUTO_INCREMENT = ;
-- ALTER TABLE erp1.employeeattendance AUTO_INCREMENT = ;
-- ALTER TABLE erp1.employeeattendancesystem AUTO_INCREMENT = ;
-- ALTER TABLE erp1.employeeclosedaygroupstatus AUTO_INCREMENT = ;
-- ALTER TABLE erp1.employeeclosedayhistory AUTO_INCREMENT = ;
-- ALTER TABLE erp1.employeeclosedaystatus AUTO_INCREMENT = ;
-- ALTER TABLE erp1.employeeclosedaysubgroupstatus AUTO_INCREMENT = ;
-- ALTER TABLE erp1.employeedoctor AUTO_INCREMENT = ;
-- ALTER TABLE erp1.employeedoctordebtandpay AUTO_INCREMENT = ;
-- ALTER TABLE erp1.employeedoctordebtchange AUTO_INCREMENT = ;
-- ALTER TABLE erp1.employeegroup AUTO_INCREMENT = ;
-- ALTER TABLE erp1.employeepersonnel AUTO_INCREMENT = ;
-- ALTER TABLE erp1.employeesubgroup AUTO_INCREMENT = ;
-- ALTER TABLE erp1.entryproductspurchased AUTO_INCREMENT = ;
-- ALTER TABLE erp1.expenseexchange AUTO_INCREMENT = ;
-- ALTER TABLE erp1.expenses AUTO_INCREMENT = ;
-- ALTER TABLE erp1.expensestype AUTO_INCREMENT = ;
-- ALTER TABLE erp1.faida AUTO_INCREMENT = ;
-- ALTER TABLE erp1.faidadirector AUTO_INCREMENT = ;
-- ALTER TABLE erp1.faidaproduct AUTO_INCREMENT = ;
-- ALTER TABLE erp1.goverarea AUTO_INCREMENT = ;
-- ALTER TABLE erp1.government AUTO_INCREMENT = ;
-- ALTER TABLE erp1.importcontract AUTO_INCREMENT = ;
-- ALTER TABLE erp1.impotencetreatmentsuppliersave AUTO_INCREMENT = ;
-- ALTER TABLE erp1.income AUTO_INCREMENT = ;
-- ALTER TABLE erp1.incometype AUTO_INCREMENT = ;
-- ALTER TABLE erp1.insurancecompanies AUTO_INCREMENT = ;
-- ALTER TABLE erp1.kashf AUTO_INCREMENT = ;
-- ALTER TABLE erp1.kempiala AUTO_INCREMENT = ;
-- ALTER TABLE erp1.knownways AUTO_INCREMENT = ;
-- ALTER TABLE erp1.languages AUTO_INCREMENT = ;
-- ALTER TABLE erp1.lastbillidspricesupdated AUTO_INCREMENT = ;
-- ALTER TABLE erp1.lastbillidsquickprofit AUTO_INCREMENT = ;
-- ALTER TABLE erp1.m_check AUTO_INCREMENT = ;
-- ALTER TABLE erp1.m_comreceipt AUTO_INCREMENT = ;
-- ALTER TABLE erp1.m_comreceiptdetail AUTO_INCREMENT = ;
-- ALTER TABLE erp1.m_comreceiptimage AUTO_INCREMENT = ;
-- ALTER TABLE erp1.m_externalmaintenance AUTO_INCREMENT = ;
-- ALTER TABLE erp1.m_finishingpayed AUTO_INCREMENT = ;
-- ALTER TABLE erp1.m_handedreport AUTO_INCREMENT = ;
-- ALTER TABLE erp1.m_initialmaintenance AUTO_INCREMENT = ;
-- ALTER TABLE erp1.m_initialmaintenancedetail AUTO_INCREMENT = ;
-- ALTER TABLE erp1.m_insurance AUTO_INCREMENT = ;
-- ALTER TABLE erp1.m_maintenancereceipt AUTO_INCREMENT = ;
-- ALTER TABLE erp1.m_maintenancereceiptfinish AUTO_INCREMENT = ;
-- ALTER TABLE erp1.m_producthistory AUTO_INCREMENT = ;
-- ALTER TABLE erp1.m_stage AUTO_INCREMENT = ;
-- ALTER TABLE erp1.m_stageproperity AUTO_INCREMENT = ;
-- ALTER TABLE erp1.maccontrol AUTO_INCREMENT = ;
-- ALTER TABLE erp1.maintenancecases AUTO_INCREMENT = 4;
-- ALTER TABLE erp1.maintenancecenters AUTO_INCREMENT = ;
-- ALTER TABLE erp1.maintenancecomments AUTO_INCREMENT = ;
-- ALTER TABLE erp1.maintenancecompanies AUTO_INCREMENT = ;
-- ALTER TABLE erp1.maintenancepolicys AUTO_INCREMENT = ;
-- ALTER TABLE erp1.maintenanceprocedures AUTO_INCREMENT = ;
-- ALTER TABLE erp1.maintenances AUTO_INCREMENT = ;
-- ALTER TABLE erp1.manufacuresetting AUTO_INCREMENT = ;
-- ALTER TABLE erp1.menuurl AUTO_INCREMENT = ;
-- ALTER TABLE erp1.movementmanage AUTO_INCREMENT = ;
-- ALTER TABLE erp1.movementmanagedeleted AUTO_INCREMENT = ;
-- ALTER TABLE erp1.newdbbackup AUTO_INCREMENT = ;
-- ALTER TABLE erp1.newdbname AUTO_INCREMENT = ;
-- ALTER TABLE erp1.notics AUTO_INCREMENT = ;
-- ALTER TABLE erp1.offerpricebill AUTO_INCREMENT = ;
-- ALTER TABLE erp1.offerpricebillprop AUTO_INCREMENT = ;
-- ALTER TABLE erp1.offerpricecondition AUTO_INCREMENT = ;
-- ALTER TABLE erp1.onlinecat AUTO_INCREMENT = ;
-- ALTER TABLE erp1.onlineproductcat AUTO_INCREMENT = ;
-- ALTER TABLE erp1.onlinestoresetting AUTO_INCREMENT = ;
-- ALTER TABLE erp1.onlinetempcategory AUTO_INCREMENT = ;
-- ALTER TABLE erp1.onlinetemporder AUTO_INCREMENT = ;
-- ALTER TABLE erp1.onlinetemporderclient AUTO_INCREMENT = ;
-- ALTER TABLE erp1.onlinetemporderproduct AUTO_INCREMENT = ;
-- ALTER TABLE erp1.onlinetempproduct AUTO_INCREMENT = ;
-- ALTER TABLE erp1.onlinetempstoredetail AUTO_INCREMENT = ;
-- ALTER TABLE erp1.onlinetempstorereport AUTO_INCREMENT = ;
-- ALTER TABLE erp1.otherrequest AUTO_INCREMENT = ;
-- ALTER TABLE erp1.otherstoremovement AUTO_INCREMENT = ;
-- ALTER TABLE erp1.pages AUTO_INCREMENT = ;
-- ALTER TABLE erp1.partner AUTO_INCREMENT = ;
-- ALTER TABLE erp1.partnertransferbetween AUTO_INCREMENT = ;
-- ALTER TABLE erp1.partnerwithdrawal AUTO_INCREMENT = ;
-- ALTER TABLE erp1.paymentnetworks AUTO_INCREMENT = ;
-- ALTER TABLE erp1.playstationcard AUTO_INCREMENT = ;
-- ALTER TABLE erp1.playstationclientcard AUTO_INCREMENT = ;
-- ALTER TABLE erp1.playstationclientcardpayhistory AUTO_INCREMENT = ;
-- ALTER TABLE erp1.policy AUTO_INCREMENT = ;
-- ALTER TABLE erp1.premium AUTO_INCREMENT = ;
-- ALTER TABLE erp1.premiumautomatic AUTO_INCREMENT = ;
-- ALTER TABLE erp1.premiumclient AUTO_INCREMENT = ;
-- ALTER TABLE erp1.premiuminstallments AUTO_INCREMENT = ;
-- ALTER TABLE erp1.product AUTO_INCREMENT = ;
-- ALTER TABLE erp1.productcat AUTO_INCREMENT = ;
-- ALTER TABLE erp1.productcatunit AUTO_INCREMENT = ;
-- ALTER TABLE erp1.productingredients AUTO_INCREMENT = ;
-- ALTER TABLE erp1.productionexecution AUTO_INCREMENT = ;
-- ALTER TABLE erp1.productionexecutionoutput AUTO_INCREMENT = ;
-- ALTER TABLE erp1.productionexecutionproduct AUTO_INCREMENT = ;
-- ALTER TABLE erp1.productionexecutionwaste AUTO_INCREMENT = ;
-- ALTER TABLE erp1.productionorder AUTO_INCREMENT = ;
-- ALTER TABLE erp1.productionout AUTO_INCREMENT = ;
-- ALTER TABLE erp1.productionoutdetails AUTO_INCREMENT = ;
-- ALTER TABLE erp1.productionoutmany AUTO_INCREMENT = ;
-- ALTER TABLE erp1.productionoutmanyinproducts AUTO_INCREMENT = ;
-- ALTER TABLE erp1.productionoutmanyoutproducts AUTO_INCREMENT = ;
-- ALTER TABLE erp1.productionrate AUTO_INCREMENT = ;
-- ALTER TABLE erp1.productionrateproduct AUTO_INCREMENT = ;
-- ALTER TABLE erp1.productrecieve AUTO_INCREMENT = ;
-- ALTER TABLE erp1.productrequests AUTO_INCREMENT = ;
-- ALTER TABLE erp1.productserial AUTO_INCREMENT = ;
-- ALTER TABLE erp1.productsetting AUTO_INCREMENT = ;
-- ALTER TABLE erp1.producttemp AUTO_INCREMENT = ;
-- ALTER TABLE erp1.producttempunit AUTO_INCREMENT = ;
-- ALTER TABLE erp1.productunit AUTO_INCREMENT = ;
-- ALTER TABLE erp1.programsettings AUTO_INCREMENT = ;
-- ALTER TABLE erp1.project AUTO_INCREMENT = ;
-- ALTER TABLE erp1.projectexchmaterial AUTO_INCREMENT = ;
-- ALTER TABLE erp1.projectexchmaterialdetail AUTO_INCREMENT = ;
-- ALTER TABLE erp1.projectexchmaterialdetailreturn AUTO_INCREMENT = ;
-- ALTER TABLE erp1.projectexchmaterialreturn AUTO_INCREMENT = ;
-- ALTER TABLE erp1.projectkind AUTO_INCREMENT = ;
-- ALTER TABLE erp1.properties AUTO_INCREMENT = ;
-- ALTER TABLE erp1.quickprofitclient AUTO_INCREMENT = ;
-- ALTER TABLE erp1.quickprofitday AUTO_INCREMENT = ;
-- ALTER TABLE erp1.quickprofitgeneral AUTO_INCREMENT = ;
-- ALTER TABLE erp1.quickprofitproduct AUTO_INCREMENT = ;
-- ALTER TABLE erp1.quickprofitstore AUTO_INCREMENT = ;
-- ALTER TABLE erp1.religions AUTO_INCREMENT = ;
-- ALTER TABLE erp1.relusergroupproperties AUTO_INCREMENT = ;
-- ALTER TABLE erp1.rentbill AUTO_INCREMENT = ;
-- ALTER TABLE erp1.rentbillprop AUTO_INCREMENT = ;
-- ALTER TABLE erp1.rentproduct AUTO_INCREMENT = ;
-- ALTER TABLE erp1.rentstore AUTO_INCREMENT = ;
-- ALTER TABLE erp1.representativecompany AUTO_INCREMENT = ;
-- ALTER TABLE erp1.restauranthall AUTO_INCREMENT = ;
-- ALTER TABLE erp1.restaurantkitchenprint AUTO_INCREMENT = ;
-- ALTER TABLE erp1.restaurantorder AUTO_INCREMENT = ;
-- ALTER TABLE erp1.restaurantorderdeliverydetails AUTO_INCREMENT = ;
-- ALTER TABLE erp1.restaurantorderdetails AUTO_INCREMENT = ;
-- ALTER TABLE erp1.restaurantplaystation AUTO_INCREMENT = ;
-- ALTER TABLE erp1.restaurantplaystationplay AUTO_INCREMENT = ;
-- ALTER TABLE erp1.restaurantprinter AUTO_INCREMENT = ;
-- ALTER TABLE erp1.restaurantrawdestruction AUTO_INCREMENT = ;
-- ALTER TABLE erp1.restauranttable AUTO_INCREMENT = ;
-- ALTER TABLE erp1.resturantcategory AUTO_INCREMENT = ;
-- ALTER TABLE erp1.returnbuybill AUTO_INCREMENT = ;
-- ALTER TABLE erp1.returnbuybillcurr AUTO_INCREMENT = ;
-- ALTER TABLE erp1.returnbuybilldetail AUTO_INCREMENT = ;
-- ALTER TABLE erp1.returnsellbill AUTO_INCREMENT = ;
-- ALTER TABLE erp1.returnsellbillcurr AUTO_INCREMENT = ;
-- ALTER TABLE erp1.returnsellbilldetail AUTO_INCREMENT = ;
-- ALTER TABLE erp1.returnsellbillreview AUTO_INCREMENT = ;
-- ALTER TABLE erp1.richproperity AUTO_INCREMENT = ;
-- ALTER TABLE erp1.salaryreport AUTO_INCREMENT = ;
-- ALTER TABLE erp1.saudielectronicinvoice AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.save AUTO_INCREMENT = ;
-- ALTER TABLE erp1.saveclose AUTO_INCREMENT = ;
-- ALTER TABLE erp1.savedaily AUTO_INCREMENT = ;
-- ALTER TABLE erp1.savetype AUTO_INCREMENT = ;
-- ALTER TABLE erp1.searchfilters AUTO_INCREMENT = ;
-- ALTER TABLE erp1.sellandruternbilldetail AUTO_INCREMENT = ;
-- ALTER TABLE erp1.sellbill AUTO_INCREMENT = ;
-- ALTER TABLE erp1.sellbillandreturnreview AUTO_INCREMENT = ;
-- ALTER TABLE erp1.sellbillandrutern AUTO_INCREMENT = ;
-- ALTER TABLE erp1.sellbillandruterncurr AUTO_INCREMENT = ;
-- ALTER TABLE erp1.sellbillcurr AUTO_INCREMENT = ;
-- ALTER TABLE erp1.sellbilldetail AUTO_INCREMENT = ;
-- ALTER TABLE erp1.sellbilldetailoffer AUTO_INCREMENT = ;
-- ALTER TABLE erp1.sellbilldetailorder AUTO_INCREMENT = ;
-- ALTER TABLE erp1.sellbilldetailtax AUTO_INCREMENT = ;
-- ALTER TABLE erp1.sellbillimage AUTO_INCREMENT = ;
-- ALTER TABLE erp1.sellbilloffer AUTO_INCREMENT = ;
-- ALTER TABLE erp1.sellbillorder AUTO_INCREMENT = ;
-- ALTER TABLE erp1.sellbillpayed AUTO_INCREMENT = ;
-- ALTER TABLE erp1.sellbillreview AUTO_INCREMENT = ;
-- ALTER TABLE erp1.sellbillstatus AUTO_INCREMENT = ;
-- ALTER TABLE erp1.sellbillview AUTO_INCREMENT = ;
-- ALTER TABLE erp1.settingoperation AUTO_INCREMENT = ;
-- ALTER TABLE erp1.shippercompanies AUTO_INCREMENT = ;
-- ALTER TABLE erp1.shippingfile AUTO_INCREMENT = ;
-- ALTER TABLE erp1.simplemanufacturesetting AUTO_INCREMENT = ;
-- ALTER TABLE erp1.sizecolor AUTO_INCREMENT = ;
-- ALTER TABLE erp1.sizecolorstoredetail AUTO_INCREMENT = ;
-- ALTER TABLE erp1.sliders AUTO_INCREMENT = ;
-- ALTER TABLE erp1.soldserialproduct AUTO_INCREMENT = ;
-- ALTER TABLE erp1.sparepart AUTO_INCREMENT = ;
-- ALTER TABLE erp1.sparepartstore AUTO_INCREMENT = ;
-- ALTER TABLE erp1.sparepartstoredetails AUTO_INCREMENT = ;
-- ALTER TABLE erp1.sparepartstorereport AUTO_INCREMENT = ;
-- ALTER TABLE erp1.stage AUTO_INCREMENT = ;
-- ALTER TABLE erp1.stagestep AUTO_INCREMENT = ;
-- ALTER TABLE erp1.stock_import_logs AUTO_INCREMENT = ;
-- ALTER TABLE erp1.store AUTO_INCREMENT = ;
-- ALTER TABLE erp1.storedetail AUTO_INCREMENT = ;
-- ALTER TABLE erp1.storemovement AUTO_INCREMENT = ;
-- ALTER TABLE erp1.storemovement_main AUTO_INCREMENT = ;
-- ALTER TABLE erp1.storereport AUTO_INCREMENT = ;
-- ALTER TABLE erp1.studentabsences AUTO_INCREMENT = ;
-- ALTER TABLE erp1.studentaddsubjectdetails AUTO_INCREMENT = ;
-- ALTER TABLE erp1.studentaddsubjects AUTO_INCREMENT = ;
-- ALTER TABLE erp1.students AUTO_INCREMENT = ;
-- ALTER TABLE erp1.studentsetting AUTO_INCREMENT = ;
-- ALTER TABLE erp1.studentsexams AUTO_INCREMENT = ;
-- ALTER TABLE erp1.studentsexamsval AUTO_INCREMENT = ;
-- ALTER TABLE erp1.studentspaymentsystems AUTO_INCREMENT = ;
-- ALTER TABLE erp1.studentspays AUTO_INCREMENT = ;
-- ALTER TABLE erp1.studentsubjectgroupdays AUTO_INCREMENT = ;
-- ALTER TABLE erp1.studentsubjectgroups AUTO_INCREMENT = ;
-- ALTER TABLE erp1.studentsubjects AUTO_INCREMENT = ;
-- ALTER TABLE erp1.subvention AUTO_INCREMENT = ;
-- ALTER TABLE erp1.subventionpay AUTO_INCREMENT = ;
-- ALTER TABLE erp1.suppay AUTO_INCREMENT = ;
-- ALTER TABLE erp1.supplier AUTO_INCREMENT = ;
-- ALTER TABLE erp1.supplierdebtchange AUTO_INCREMENT = ;
-- ALTER TABLE erp1.supplieropen AUTO_INCREMENT = ;
-- ALTER TABLE erp1.supplieropendebtchange AUTO_INCREMENT = ;
-- ALTER TABLE erp1.supplieropenexchangeorclosing AUTO_INCREMENT = ;
-- ALTER TABLE erp1.tamweenbill AUTO_INCREMENT = ;
-- ALTER TABLE erp1.tamweenclientdetail AUTO_INCREMENT = ;
-- ALTER TABLE erp1.tamweenda3mstatus AUTO_INCREMENT = ;
-- ALTER TABLE erp1.tamweenremainstatus AUTO_INCREMENT = ;
-- ALTER TABLE erp1.taskorder AUTO_INCREMENT = ;
-- ALTER TABLE erp1.taskorderproducts AUTO_INCREMENT = ;
-- ALTER TABLE erp1.taskscases AUTO_INCREMENT = 6;
-- ALTER TABLE erp1.temreturnsellbill AUTO_INCREMENT = ;
-- ALTER TABLE erp1.temreturnsellbilldetail AUTO_INCREMENT = ;
-- ALTER TABLE erp1.temsellandruternbilldetail AUTO_INCREMENT = ;
-- ALTER TABLE erp1.temsellbill AUTO_INCREMENT = ;
-- ALTER TABLE erp1.temsellbillandrutern AUTO_INCREMENT = ;
-- ALTER TABLE erp1.temsellbilldetail AUTO_INCREMENT = ;
-- ALTER TABLE erp1.toworkshoporder AUTO_INCREMENT = ;
-- ALTER TABLE erp1.toworkshoporderbill AUTO_INCREMENT = ;
-- ALTER TABLE erp1.transferbtweenbankaccount AUTO_INCREMENT = ;
-- ALTER TABLE erp1.transferclientaccounts AUTO_INCREMENT = ;
-- ALTER TABLE erp1.transfermoney AUTO_INCREMENT = ;
-- ALTER TABLE erp1.typeclient AUTO_INCREMENT = ;
-- ALTER TABLE erp1.typesimpotencetreatment AUTO_INCREMENT = ;
-- ALTER TABLE erp1.typesupplier AUTO_INCREMENT = ;
-- ALTER TABLE erp1.unit AUTO_INCREMENT = ;
-- ALTER TABLE erp1.user AUTO_INCREMENT = ;
-- ALTER TABLE erp1.usergroup AUTO_INCREMENT = ;
-- ALTER TABLE erp1.usergroupadmin AUTO_INCREMENT = ;
-- ALTER TABLE erp1.vatpayment AUTO_INCREMENT = ;
-- ALTER TABLE erp1.wishlist AUTO_INCREMENT = ;
-- ALTER TABLE erp1.workshop AUTO_INCREMENT = ;
-- ALTER TABLE erp1.workstation AUTO_INCREMENT = ;
-- ALTER TABLE erp1.workstationassets AUTO_INCREMENT = ;
-- ALTER TABLE erp1.workstationworker AUTO_INCREMENT = ;
-- ALTER TABLE erp1.youtube_link AUTO_INCREMENT = ;
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='44a31748dcc9eba74d9b43424c373ad9140cf58047d859719ce4980e548afbebe140fa05fac50dce2c3d75d470ba3f1fdb7cf6a07a52b3cb3685408882a88dc2',associatedtags='0',commentClientChasis='0',dollarExType='0',saudielectronicinvoice='0',saudielectronicinvoclient='0',productDiscount='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),(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),(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),(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); -- id=2256
INSERT IGNORE INTO relusergroupproperties (usergroupid, propertyid, propertyvalue, theorder)
                SELECT -1,propertyid , 0,0
                from properties; -- id=2964
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) VALUES ('admin', 'manager', '1', 'admin', '2025-12-08', '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', '2025-12-08', '0', '1' ,'0' ,'0','0','0','what is','my company is GT4','0','127.0.0.1','2025-12-08 20:59:14','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 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` = '0', 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='44a31748dcc9eba74d9b43424c373ad9140cf58047d859719ce4980e548afbebe140fa05fac50dce2c3d75d470ba3f1fdb7cf6a07a52b3cb3685408882a88dc2',associatedtags='0',commentClientChasis='0',dollarExType='0',saudielectronicinvoice='0',saudielectronicinvoclient='0',productDiscount='0' WHERE programsettingsid = '1';
UPDATE user SET loginip = "" WHERE lastactivetime < "2025-12-08 17:29:14";
UPDATE user SET loginip = "127.0.0.1", lastactivetime = "2025-12-08 20:59:15", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2025-12-08 20:59:15', '1', '', '127.0.0.1', '', 'DESKTOP','https://localhost/erp19/controllers/index.php'); -- id=1
UPDATE user SET loginip = "" WHERE lastactivetime < "2025-12-08 17:29:47";
UPDATE user SET loginip = "127.0.0.1", lastactivetime = "2025-12-08 20:59:48", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2025-12-08 20:59:48', '1', 'addsellBill', '127.0.0.1', '', 'DESKTOP','https://localhost/erp19/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=2
UPDATE user SET loginip = "" WHERE lastactivetime < "2025-12-08 17:30:05";
UPDATE user SET loginip = "127.0.0.1", lastactivetime = "2025-12-08 21:00:05", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2025-12-08 21:00:05', '1', 'addsellBill', '127.0.0.1', '', 'DESKTOP','https://localhost/erp19/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=3
UPDATE user SET loginip = "" WHERE lastactivetime < "2025-12-08 17:30:18";
UPDATE user SET loginip = "127.0.0.1", lastactivetime = "2025-12-08 21:00:19", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2025-12-08 21:00:19', '1', '', '127.0.0.1', '', 'DESKTOP','https://localhost/erp19/controllers/productController.php'); -- id=4
UPDATE user SET loginip = "" WHERE lastactivetime < "2025-12-08 17:30:28";
UPDATE user SET loginip = "127.0.0.1", lastactivetime = "2025-12-08 21:00:29", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2025-12-08 21:00:29', '1', 'addsellBill', '127.0.0.1', '', 'DESKTOP','https://localhost/erp19/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=5
UPDATE user SET loginip = "" WHERE lastactivetime < "2025-12-08 17:30:40";
UPDATE user SET loginip = "127.0.0.1", lastactivetime = "2025-12-08 21:00:40", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2025-12-08 21:00:40', '1', '', '127.0.0.1', '', 'DESKTOP','https://localhost/erp19/controllers/index.php'); -- id=6
UPDATE user SET loginip = "" WHERE lastactivetime < "2025-12-08 17:32:06";
UPDATE user SET loginip = "127.0.0.1", lastactivetime = "2025-12-08 21:02:06", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2025-12-08 21:02:06', '1', '', '127.0.0.1', '', 'DESKTOP','https://localhost/erp19/controllers/index.php'); -- id=7
UPDATE user SET loginip = "" WHERE lastactivetime < "2025-12-08 17:33:14";
UPDATE user SET loginip = "127.0.0.1", lastactivetime = "2025-12-08 21:03:14", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2025-12-08 21:03:14', '1', '', '127.0.0.1', '', 'DESKTOP','https://localhost/erp19/controllers/index.php'); -- id=8
UPDATE user SET loginip = "" WHERE lastactivetime < "2025-12-08 17:34:45";
UPDATE user SET loginip = "127.0.0.1", lastactivetime = "2025-12-08 21:04:45", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2025-12-08 21:04:45', '1', '', '127.0.0.1', '', 'DESKTOP','https://localhost/erp19/controllers/index.php'); -- id=9
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` = '0', taxcard = '123456789123', commercialregistration = '1234', costcenter = '1', clinic = '1', workshop = '1', transport = '1', manufacturing = '1', masterCopy = '0' , dailyentrydate = '2020-04-18' ,updatefiledate = '2025-12-08',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='44a31748dcc9eba74d9b43424c373ad9140cf58047d859719ce4980e548afbebe140fa05fac50dce2c3d75d470ba3f1fdb7cf6a07a52b3cb3685408882a88dc2',associatedtags='0',commentClientChasis='0',dollarExType='0',saudielectronicinvoice='0',saudielectronicinvoclient='0',productDiscount='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', '2025-12-08 21:04:52','1'); -- id=1
INSERT INTO save (saveid, savename, savecurrentvalue, savedetails, savedate, conditions, userid,treeId) VALUES ('1', 'الخزنة الرئيسية', '0', '', '2025-12-08', '0', '1','383'); -- id=1
INSERT INTO unit (unitName, unitSymbol, unitDescription, unitDate, conditions, userId) VALUES ('قطعة', '', '', '2025-12-08', '0', '1'); -- id=1
INSERT INTO store (storeId, storeName, storeDate, storeDescription, conditions, userId,treeId,treeIdBetween) VALUES ('1', 'المخزن الرئيسي', '2025-12-08', "المخزن الرئيسي", '0', '1','382','51'); -- id=1
INSERT INTO sparepartstore (sparepartstoreId, storeName, storeDate, storeDescription, conditions, userId) VALUES ('1', 'مخزن قطع الغيار', '2025-12-08', 'مخزن قطع الغيار', '0', '1'); -- id=1
INSERT INTO supplier (supplierid, suppliername, supplieraddress, supplierphone, suppliercurrentDebt, supplierdetails, conditions, userid, supplierdate) VALUES ('1', 'مباشر', '', '', '0', 'مباشر', '0', '1', '2025-12-08'); -- 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', '2025-12-08', '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 < "2025-12-08 17:35:00";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2025-12-08 21:05:00', '1', 'handleExpiredCards', '127.0.0.1', '', 'DESKTOP','https://localhost/erp19/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=10
UPDATE user SET loginip = "" WHERE lastactivetime < "2025-12-08 17:35:24";
UPDATE user SET loginip = "127.0.0.1", lastactivetime = "2025-12-08 21:05:24", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2025-12-08 21:05:24', '1', 'show', '127.0.0.1', '', 'DESKTOP','https://localhost/erp19/controllers/productCatController.php?do=show'); -- id=11
UPDATE user SET loginip = "" WHERE lastactivetime < "2025-12-08 17:35:36";
UPDATE user SET loginip = "127.0.0.1", lastactivetime = "2025-12-08 21:05:36", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2025-12-08 21:05:36', '1', '', '127.0.0.1', '', 'DESKTOP','https://localhost/erp19/controllers/productCatController.php'); -- id=12
UPDATE user SET loginip = "" WHERE lastactivetime < "2025-12-08 17:35:53";
UPDATE user SET loginip = "127.0.0.1", lastactivetime = "2025-12-08 21:05:53", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2025-12-08 21:05:53', '1', 'add2', '127.0.0.1', '', 'DESKTOP','https://localhost/erp19/controllers/productCatController.php?do=add2'); -- id=13
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 ('cat','2025-12-08','','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
UPDATE user SET loginip = "" WHERE lastactivetime < "2025-12-08 17:36:55";
UPDATE user SET loginip = "127.0.0.1", lastactivetime = "2025-12-08 21:06:55", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2025-12-08 21:06:55', '1', '', '127.0.0.1', '', 'DESKTOP','https://localhost/erp19/controllers/productCatController.php'); -- id=14
UPDATE user SET loginip = "" WHERE lastactivetime < "2025-12-08 17:37:38";
UPDATE user SET loginip = "127.0.0.1", lastactivetime = "2025-12-08 21:07:38", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2025-12-08 21:07:38', '1', 'show', '127.0.0.1', '', 'DESKTOP','https://localhost/erp19/controllers/productCatController.php?do=show'); -- id=15
UPDATE user SET loginip = "" WHERE lastactivetime < "2025-12-08 17:37:47";
UPDATE user SET loginip = "127.0.0.1", lastactivetime = "2025-12-08 21:07:47", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2025-12-08 21:07:47', '1', 'show', '127.0.0.1', '', 'DESKTOP','https://localhost/erp19/controllers/productCatController.php?do=show'); -- id=16
UPDATE user SET loginip = "" WHERE lastactivetime < "2025-12-08 17:37:53";
UPDATE user SET loginip = "127.0.0.1", lastactivetime = "2025-12-08 21:07:53", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2025-12-08 21:07:53', '1', 'edit', '127.0.0.1', '', 'DESKTOP','https://localhost/erp19/controllers/productCatController.php?do=edit&id=1&parentid=0'); -- id=17
UPDATE user SET loginip = "" WHERE lastactivetime < "2025-12-08 17:38:06";
UPDATE user SET loginip = "127.0.0.1", lastactivetime = "2025-12-08 21:08:06", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2025-12-08 21:08:06', '1', 'show', '127.0.0.1', '', 'DESKTOP','https://localhost/erp19/controllers/productCatController.php?do=show'); -- id=18
UPDATE user SET loginip = "" WHERE lastactivetime < "2025-12-08 17:39:18";
UPDATE user SET loginip = "127.0.0.1", lastactivetime = "2025-12-08 21:09:18", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2025-12-08 21:09:18', '1', '', '127.0.0.1', '', 'DESKTOP','https://localhost/erp19/controllers/productController.php'); -- id=19
UPDATE user SET loginip = "" WHERE lastactivetime < "2025-12-08 17:39:35";
UPDATE user SET loginip = "127.0.0.1", lastactivetime = "2025-12-08 21:09:35", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2025-12-08 21:09:35', '1', '', '127.0.0.1', '', 'DESKTOP','https://localhost/erp19/controllers/productController.php'); -- id=20
UPDATE user SET loginip = "" WHERE lastactivetime < "2025-12-08 17:39:48";
UPDATE user SET loginip = "127.0.0.1", lastactivetime = "2025-12-08 21:09:48", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2025-12-08 21:09:48', '1', 'show', '127.0.0.1', '', 'DESKTOP','https://localhost/erp19/controllers/productCatController.php?do=show'); -- id=21
UPDATE user SET loginip = "" WHERE lastactivetime < "2025-12-08 17:40:16";
UPDATE user SET loginip = "127.0.0.1", lastactivetime = "2025-12-08 21:10:16", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2025-12-08 21:10:16', '1', '', '127.0.0.1', '', 'DESKTOP','https://localhost/erp19/controllers/productCatController.php'); -- id=22
UPDATE user SET loginip = "" WHERE lastactivetime < "2025-12-08 17:40:35";
UPDATE user SET loginip = "127.0.0.1", lastactivetime = "2025-12-08 21:10:35", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2025-12-08 21:10:35', '1', 'add2', '127.0.0.1', '', 'DESKTOP','https://localhost/erp19/controllers/productCatController.php?do=add2'); -- id=23
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 ('new cat','2025-12-08','','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,'2025-12-08 21:10:41',1)
                ON DUPLICATE KEY UPDATE catid = 2, edited = 1, sysdate = '2025-12-08 21:10:41', userid = 1; -- id=1
UPDATE user SET loginip = "" WHERE lastactivetime < "2025-12-08 17:40:41";
UPDATE user SET loginip = "127.0.0.1", lastactivetime = "2025-12-08 21:10:41", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2025-12-08 21:10:41', '1', 'sucess', '127.0.0.1', '', 'DESKTOP','https://localhost/erp19/controllers/productCatController.php?do=sucess'); -- id=24
UPDATE user SET loginip = "" WHERE lastactivetime < "2025-12-08 17:40:47";
UPDATE user SET loginip = "127.0.0.1", lastactivetime = "2025-12-08 21:10:47", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2025-12-08 21:10:47', '1', 'show', '127.0.0.1', '', 'DESKTOP','https://localhost/erp19/controllers/productCatController.php?do=show'); -- id=25
UPDATE user SET loginip = "" WHERE lastactivetime < "2025-12-08 17:41:12";
UPDATE user SET loginip = "127.0.0.1", lastactivetime = "2025-12-08 21:11:12", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2025-12-08 21:11:12', '1', 'edit', '127.0.0.1', '', 'DESKTOP','https://localhost/erp19/controllers/productCatController.php?do=edit&id=2&parentid=0'); -- id=26
UPDATE user SET loginip = "" WHERE userid = -1;
