-- ALTER TABLE erp1.accountmovement AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.accountmovementkind AUTO_INCREMENT = 4;
-- ALTER TABLE erp1.accountstree AUTO_INCREMENT = 420;
-- ALTER TABLE erp1.accountstreefromprog AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.accountstreesetting AUTO_INCREMENT = 7;
-- ALTER TABLE erp1.ads AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.area AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.assets AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.assetscat AUTO_INCREMENT = 25;
-- ALTER TABLE erp1.assetssale AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.availableparcode AUTO_INCREMENT = 100001;
-- ALTER TABLE erp1.bank AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.bankaccount AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.beneficiaries AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.beneficiaries_eco AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.beneficiaries_family AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.billname AUTO_INCREMENT = 7;
-- ALTER TABLE erp1.billoperation AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.billprint AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.billprinter AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.billproperty AUTO_INCREMENT = 130;
-- ALTER TABLE erp1.bills AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.billsbuy AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.billsettings AUTO_INCREMENT = 1196;
-- 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 = 4;
-- ALTER TABLE erp1.buybillcurr AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.buybilldetail AUTO_INCREMENT = 4;
-- ALTER TABLE erp1.buybilldetailoffer AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.buybilloffer AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.buypriceshistorybook AUTO_INCREMENT = 3;
-- ALTER TABLE erp1.capital AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.carfile AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.carreview AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.carreviewer AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.cars AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.cartracking AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.cashtransfer AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.charities AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.charitiescenter AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.charitysearchlog AUTO_INCREMENT = 1;
-- 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 = 3;
-- ALTER TABLE erp1.clientarea AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.clientdebtchange AUTO_INCREMENT = 13;
-- ALTER TABLE erp1.clientdetails AUTO_INCREMENT = 2;
-- 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 = 2;
-- ALTER TABLE erp1.dailyentry AUTO_INCREMENT = 15;
-- ALTER TABLE erp1.dailyentrycreditor AUTO_INCREMENT = 15;
-- ALTER TABLE erp1.dailyentrydebtor AUTO_INCREMENT = 15;
-- ALTER TABLE erp1.damagedproduct AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.datedchecked AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.discountcontrol AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.disease AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.doctorkashf AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.dollarearnings AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.ebillsetting AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.eclientsetting AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.employee AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.employeeattendance AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.employeeattendancesystem AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.employeeclosedaygroupstatus AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.employeeclosedayhistory AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.employeeclosedaystatus AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.employeeclosedaysubgroupstatus AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.employeedoctor AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.employeedoctordebtandpay AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.employeedoctordebtchange AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.employeegroup AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.employeepersonnel AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.employeesubgroup AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.entryproductspurchased AUTO_INCREMENT = 3;
-- ALTER TABLE erp1.expenseexchange AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.expenses AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.expensestype AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.faida AUTO_INCREMENT = 2;
-- ALTER TABLE erp1.faidadirector AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.faidaproduct AUTO_INCREMENT = 3;
-- ALTER TABLE erp1.goverarea AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.government AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.importcontract AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.impotencetreatmentsuppliersave AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.income AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.incometype AUTO_INCREMENT = 8;
-- ALTER TABLE erp1.insurancecompanies AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.kashf AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.kempiala AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.knownways AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.languages AUTO_INCREMENT = 3;
-- ALTER TABLE erp1.lastbillidspricesupdated AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.lastbillidsquickprofit AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.m_check AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.m_comreceipt AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.m_comreceiptdetail AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.m_comreceiptimage AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.m_externalmaintenance AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.m_finishingpayed AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.m_handedreport AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.m_initialmaintenance AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.m_initialmaintenancedetail AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.m_insurance AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.m_maintenancereceipt AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.m_maintenancereceiptfinish AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.m_producthistory AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.m_stage AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.m_stageproperity AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.maccontrol AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.maintenancecases AUTO_INCREMENT = 5;
-- ALTER TABLE erp1.maintenancecenters AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.maintenancecomments AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.maintenancecompanies AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.maintenancepolicys AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.maintenanceprocedures AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.maintenances AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.manufacuresetting AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.menuurl AUTO_INCREMENT = 31;
-- ALTER TABLE erp1.movementmanage AUTO_INCREMENT = 243;
-- ALTER TABLE erp1.movementmanagedeleted AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.newdbbackup AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.newdbname AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.notics AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.offerpricebill AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.offerpricebillprop AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.offerpricecondition AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.onlinecat AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.onlineproductcat AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.onlinestoresetting AUTO_INCREMENT = 2;
-- ALTER TABLE erp1.onlinetempcategory AUTO_INCREMENT = 5;
-- ALTER TABLE erp1.onlinetemporder AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.onlinetemporderclient AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.onlinetemporderproduct AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.onlinetempproduct AUTO_INCREMENT = 6;
-- ALTER TABLE erp1.onlinetempstoredetail AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.onlinetempstorereport AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.otherrequest AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.otherstoremovement AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.pages AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.partner AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.partnertransferbetween AUTO_INCREMENT = 25;
-- ALTER TABLE erp1.partnerwithdrawal AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.paymentnetworks AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.playstationcard AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.playstationclientcard AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.playstationclientcardpayhistory AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.policy AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.premium AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.premiumautomatic AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.premiumclient AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.premiuminstallments AUTO_INCREMENT = 24;
-- ALTER TABLE erp1.product AUTO_INCREMENT = 6;
-- ALTER TABLE erp1.productcat AUTO_INCREMENT = 4;
-- ALTER TABLE erp1.productcatunit AUTO_INCREMENT = 2;
-- ALTER TABLE erp1.productingredients AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.productionexecution AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.productionexecutionoutput AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.productionexecutionproduct AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.productionexecutionwaste AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.productionorder AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.productionout AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.productionoutdetails AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.productionoutmany AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.productionoutmanyinproducts AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.productionoutmanyoutproducts AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.productionrate AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.productionrateproduct AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.productrecieve AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.productrequests AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.productserial AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.productsetting AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.productstore AUTO_INCREMENT = 4;
-- ALTER TABLE erp1.producttemp AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.producttempunit AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.productunit AUTO_INCREMENT = 6;
-- ALTER TABLE erp1.programsettings AUTO_INCREMENT = 2;
-- ALTER TABLE erp1.project AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.projectexchmaterial AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.projectexchmaterialdetail AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.projectexchmaterialdetailreturn AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.projectexchmaterialreturn AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.projectkind AUTO_INCREMENT = 4;
-- ALTER TABLE erp1.properties AUTO_INCREMENT = 688;
-- ALTER TABLE erp1.qrerpuserpass AUTO_INCREMENT = 2;
-- ALTER TABLE erp1.quickprofitclient AUTO_INCREMENT = 5;
-- ALTER TABLE erp1.quickprofitday AUTO_INCREMENT = 5;
-- ALTER TABLE erp1.quickprofitgeneral AUTO_INCREMENT = 2;
-- ALTER TABLE erp1.quickprofitproduct AUTO_INCREMENT = 8;
-- ALTER TABLE erp1.quickprofitstore AUTO_INCREMENT = 8;
-- ALTER TABLE erp1.religions AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.relusergroupproperties AUTO_INCREMENT = 3222;
-- ALTER TABLE erp1.rentbill AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.rentbillprop AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.rentproduct AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.rentstore AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.representativecompany AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.restauranthall AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.restaurantkitchenprint AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.restaurantorder AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.restaurantorderdeliverydetails AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.restaurantorderdetails AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.restaurantplaystation AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.restaurantplaystationplay AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.restaurantprinter AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.restaurantrawdestruction AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.restauranttable AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.resturantcategory AUTO_INCREMENT = 4;
-- ALTER TABLE erp1.returnbuybill AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.returnbuybillcurr AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.returnbuybilldetail AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.returnsellbill AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.returnsellbillcurr AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.returnsellbilldetail AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.returnsellbillreview AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.richproperity AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.salaryreport AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.saudielectronicinvoice AUTO_INCREMENT = 2;
-- ALTER TABLE erp1.save AUTO_INCREMENT = 2;
-- ALTER TABLE erp1.saveclose AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.savedaily AUTO_INCREMENT = 9;
-- ALTER TABLE erp1.savestock AUTO_INCREMENT = 3;
-- ALTER TABLE erp1.savetype AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.searchfilters AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.sellandruternbilldetail AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.sellbill AUTO_INCREMENT = 11;
-- ALTER TABLE erp1.sellbillandreturnreview AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.sellbillandrutern AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.sellbillandruterncurr AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.sellbillcurr AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.sellbilldetail AUTO_INCREMENT = 11;
-- ALTER TABLE erp1.sellbilldetailoffer AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.sellbilldetailorder AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.sellbilldetailtax AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.sellbillimage AUTO_INCREMENT = 9;
-- ALTER TABLE erp1.sellbilloffer AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.sellbillorder AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.sellbillpayed AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.sellbillreview AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.sellbillstatus AUTO_INCREMENT = 8;
-- ALTER TABLE erp1.sellbillview AUTO_INCREMENT = ;
-- ALTER TABLE erp1.settingoperation AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.shippercompanies AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.shippingfile AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.simplemanufacturesetting AUTO_INCREMENT = 2;
-- ALTER TABLE erp1.sizecolor AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.sizecolorstoredetail AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.sliders AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.soldserialproduct AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.sparepart AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.sparepartstore AUTO_INCREMENT = 2;
-- ALTER TABLE erp1.sparepartstoredetails AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.sparepartstorereport AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.stage AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.stagestep AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.stock_import_logs AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.store AUTO_INCREMENT = 2;
-- ALTER TABLE erp1.storedetail AUTO_INCREMENT = 6;
-- ALTER TABLE erp1.storemovement AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.storemovement_main AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.storereport AUTO_INCREMENT = 14;
-- ALTER TABLE erp1.studentabsences AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.studentaddsubjectdetails AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.studentaddsubjects AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.students AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.studentsetting AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.studentsexams AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.studentsexamsval AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.studentspaymentsystems AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.studentspays AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.studentsubjectgroupdays AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.studentsubjectgroups AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.studentsubjects AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.subvention AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.subventionpay AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.suppay AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.supplier AUTO_INCREMENT = 2;
-- ALTER TABLE erp1.supplierdebtchange AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.supplieropen AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.supplieropendebtchange AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.supplieropenexchangeorclosing AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.tamweenbill AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.tamweenclientdetail AUTO_INCREMENT = 2;
-- ALTER TABLE erp1.tamweenda3mstatus AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.tamweenremainstatus AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.taskorder AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.taskorderproducts AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.taskscases AUTO_INCREMENT = 6;
-- ALTER TABLE erp1.temreturnsellbill AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.temreturnsellbilldetail AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.temsellandruternbilldetail AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.temsellbill AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.temsellbillandrutern AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.temsellbilldetail AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.toworkshoporder AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.toworkshoporderbill AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.transferbtweenbankaccount AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.transferclientaccounts AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.transfermoney AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.typeclient AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.typesimpotencetreatment AUTO_INCREMENT = 4;
-- ALTER TABLE erp1.typesupplier AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.unit AUTO_INCREMENT = 2;
-- ALTER TABLE erp1.user AUTO_INCREMENT = 2;
-- ALTER TABLE erp1.usergroup AUTO_INCREMENT = 5;
-- ALTER TABLE erp1.usergroupadmin AUTO_INCREMENT = 1027;
-- ALTER TABLE erp1.vatpayment AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.wishlist AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.workshop AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.workstation AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.workstationassets AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.workstationworker AUTO_INCREMENT = 1;
-- ALTER TABLE erp1.youtube_link AUTO_INCREMENT = 290;
update user set blockedByLimits = 0;
UPDATE user SET loginip = "" WHERE lastactivetime < "2025-12-18 20:24:32";
UPDATE user SET loginip = "127.0.0.1", lastactivetime = "2025-12-18 23:54:33", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2025-12-18 23:54:33', '1', '', '127.0.0.1', '', 'DESKTOP','https://localhost/erp19/controllers/index.php'); -- id=243
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-18',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 product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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-18',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 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-18 20:24:38";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2025-12-18 23:54:39', '1', 'handleExpiredCards', '127.0.0.1', '', 'DESKTOP','https://localhost/erp19/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=244
UPDATE user SET loginip = "" WHERE lastactivetime < "2025-12-18 20:24:48";
UPDATE user SET loginip = "127.0.0.1", lastactivetime = "2025-12-18 23:54:48", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2025-12-18 23:54:48', '1', 'addsellBill', '127.0.0.1', '', 'DESKTOP','https://localhost/erp19/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=245
UPDATE user SET loginip = "" WHERE lastactivetime < "2025-12-18 20:25:08";
UPDATE user SET loginip = "127.0.0.1", lastactivetime = "2025-12-18 23:55:08", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2025-12-18 23:55:08', '1', 'addAndRetuen', '127.0.0.1', '', 'DESKTOP','https://localhost/erp19/controllers/sellbillController.php?do=addAndRetuen'); -- id=246

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 06944782d54a4a
-- ----------------------------------------------------------------------------------------------------

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 ('2025-12-18 23:55:13', '06944782d54a4a', '1', '0.00', '0', '0', '1', '20.00', '20', '20', '0', '1', '2025-12-18 23:55:13', '', '1', '0', 'نقدي', '1', '0', '3', '0', 'نقدي', '2' ,'0','','','','','-1','0','0','0','0','0','20','0','','0','0','20','0','0','0','0','0','0','0','0','','','','0','','0','','0','-1','2025-12-18','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=11
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','اضافة فاتورة مبيعات','11', '0', '2025-12-18 23:55:13', '1', 'sellbillController.php', 'اضافة فاتورة مبيعات', '20', '0', null, '0', null, null,'', '0','1','1','0','1','2025-12-18 23:55:13','0','0','',''); -- id=13
INSERT INTO sellbilldetail (buyprice, parcode, sellbillid, sellbilldetailcatid, sellbilldetailproductid, sellbilldetailquantity, sellbilldetailprice, sellbilldetailtotalprice, discountvalue, note, pricetype, sellbilldetaildate, productunitid, buydiscount, buydiscounttype,storeid,discounttype,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,onlineOrderId,pricetypepro,playstationPlayId,soldSerialsInDetails,buyPricesHistoryBookIdQuantity,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('10','00004', '11', '3', '4', '1', '10', '10', '0', '', '0', '2025-12-18 23:55:13', '4', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','','1','1','0','0','10','10','0','','0','0.00','0','0','0','0'); -- id=11
UPDATE storedetail SET productquantity = (select sum(`quantity`) from sizecolorstoredetail where `storeid` = 1 and `productid` = 4)
                , userid = 1, storedetaildate = "2025-12-18" WHERE  unittype = 0 and storedetailid = 4 ;
UPDATE sellbilldetail SET  lastbuyprice = 10.00 , meanbuyprice = 10.00, lastbuyprice_withDiscount = 10.00, meanbuyprice_withDiscount = 10.00
        , lastbuyprice_withTax = 10, meanbuyprice_withTax = 10, lastbuyprice_withDiscountAndTax = 10
                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 (4, '2025-12-18', 10, -10, -10
                    , -10, -10, -10, -10
                    , 0, 0, 0, 0
                    , 0, 0, 0, -1, 0, -10, -10, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+10, sellCostBuyPrice =sellCostBuyPrice+-10
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+-10, sellCostMeanBuyPrice = sellCostMeanBuyPrice+-10
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+-10, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+-10
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+-10
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+-10
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+-10
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+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, '2025-12-18', 10, -10, -10
                    , -10, -10, -10, -10
                    , 0, 0, 0, 0
                    , 0, 0, 0, -10, -10, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+10, sellCostBuyPrice =sellCostBuyPrice+-10
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+-10, sellCostMeanBuyPrice = sellCostMeanBuyPrice+-10
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+-10, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+-10
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+-10
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+-10
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+-10
                        , returnSellVal = returnSellVal+0, 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 storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('4', '1', '1', '1', '11', 'اضافة فاتورة مبيعات', 'sellbillController.php', '0', '-1', '1', '2025-12-18 23:55:13','0','0'); -- id=14
INSERT INTO sellbilldetail (buyprice, parcode, sellbillid, sellbilldetailcatid, sellbilldetailproductid, sellbilldetailquantity, sellbilldetailprice, sellbilldetailtotalprice, discountvalue, note, pricetype, sellbilldetaildate, productunitid, buydiscount, buydiscounttype,storeid,discounttype,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,onlineOrderId,pricetypepro,playstationPlayId,soldSerialsInDetails,buyPricesHistoryBookIdQuantity,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('10','00004', '11', '3', '4', '1', '10', '10', '0', '', '0', '2025-12-18 23:55:13', '4', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','','1','1','0','0','10','10','0','','0','0.00','0','0','0','0'); -- id=12
UPDATE storedetail SET productquantity = (select sum(`quantity`) from sizecolorstoredetail where `storeid` = 1 and `productid` = 4)
                , userid = 1, storedetaildate = "2025-12-18" WHERE  unittype = 0 and storedetailid = 4 ;
UPDATE sellbilldetail SET  lastbuyprice = 10.00 , meanbuyprice = 10.00, lastbuyprice_withDiscount = 10.00, meanbuyprice_withDiscount = 10.00
        , lastbuyprice_withTax = 10, meanbuyprice_withTax = 10, lastbuyprice_withDiscountAndTax = 10
                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 (4, '2025-12-18', 10, -10, -10
                    , -10, -10, -10, -10
                    , 0, 0, 0, 0
                    , 0, 0, 0, -1, 0, -10, -10, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+10, sellCostBuyPrice =sellCostBuyPrice+-10
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+-10, sellCostMeanBuyPrice = sellCostMeanBuyPrice+-10
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+-10, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+-10
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+-10
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+-10
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+-10
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+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, '2025-12-18', 10, -10, -10
                    , -10, -10, -10, -10
                    , 0, 0, 0, 0
                    , 0, 0, 0, -10, -10, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+10, sellCostBuyPrice =sellCostBuyPrice+-10
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+-10, sellCostMeanBuyPrice = sellCostMeanBuyPrice+-10
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+-10, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+-10
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+-10
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+-10
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+-10
                        , returnSellVal = returnSellVal+0, 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 storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('4', '1', '1', '1', '11', 'اضافة فاتورة مبيعات', 'sellbillController.php', '0', '-1', '1', '2025-12-18 23:55:13','0','0'); -- id=15
CALL saveInUse(1,@saveidis,@savecurrentvalueis,@currencyIdis,@treeIdis,@conversionFactoris);
UPDATE save SET  savecurrentvalue = '750',  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 ('730','20', '0', '1', 'اضافة فاتورة مبيعات', '11', '750', '2025-12-18 23:55:13', '1',  'sellbillController.php','1','','0'); -- id=9
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '20', '20', '2025-12-18', '1', '0', '0', '2025-12-18 23:55:13','اضافة فاتورة مبيعات رقم 11','1','0',null,'0','11','sellbillController.php?do=showDetail&sellbillid=11'); -- id=15
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('15', '383', '20', '','0'); -- id=15
UPDATE accountstree SET name = 'الخزنة الرئيسية', customName = 'الخزنة الرئيسية', customNameEn = 'الخزنة الرئيسية', nameEn = 'الخزنة الرئيسية', parent = '40', accountNature = '0', theValue = '740', 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 ('15', '143', '20', '','0'); -- id=15
UPDATE accountstree SET name = 'ايرادات المبيعات ', customName = 'ايرادات المبيعات ', customNameEn = 'Revenue of Sales', nameEn = 'Revenue of Sales', parent = '142', accountNature = '1', theValue = '240', 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 ( '-20', '-20', '2025-12-18', '1', '0', '0', '2025-12-18 23:55:13','اضافة فاتورة مبيعات رقم 11 - صرف البضاعة من المخزن','1','0',null,'0','11','sellbillController.php?do=showDetail&sellbillid=11'); -- id=16
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('16', '402', '-20', '','0'); -- id=16
UPDATE accountstree SET name = 'تكلفة التشغيل', customName = 'تكلفة التشغيل', customNameEn = '', nameEn = '', parent = '160', accountNature = '0', theValue = '-220', 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 ('16', '382', '-20', '','0'); -- id=16
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '10220', 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='15,0,16' where sellbillid=11;
 INSERT INTO quickprofitday (theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES ('2025-12-18', 20, -20, -20
                    , -20, -20, -20, -20
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,-20, -20, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+20, sellCostBuyPrice =sellCostBuyPrice+-20
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+-20, sellCostMeanBuyPrice = sellCostMeanBuyPrice+-20
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+-20, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+-20
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+-20
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+-20
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+-20
                        , returnSellVal = returnSellVal+0, 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, '2025-12-18', 20, -20, -20
                    , -20, -20, -20, -20
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,-20, -20, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+20, sellCostBuyPrice =sellCostBuyPrice+-20
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+-20, sellCostMeanBuyPrice = sellCostMeanBuyPrice+-20
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+-20, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+-20
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+-20
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+-20
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+-20
                        , returnSellVal = returnSellVal+0, 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, 20, -20, -20
                    , -20, -20, -20, -20, -20, -20)
                ON DUPLICATE KEY UPDATE netSellVal = netSellVal+20, netSellCostBuyPrice = netSellCostBuyPrice+-20
                , netSellCostLastBuyPrice = netSellCostLastBuyPrice+-20
                , netSellCostMeanBuyPrice = netSellCostMeanBuyPrice+-20
                , netSellCostLastBuyPricewithDiscount = netSellCostLastBuyPricewithDiscount+-20
                , netSellCostMeanBuyPricewithDiscount = netSellCostMeanBuyPricewithDiscount+-20
                , netSellCostOverAllAveragePrice = netSellCostOverAllAveragePrice+-20
                , netSellCostLastBuyPricewithTax = netSellCostLastBuyPricewithTax+-20
                , netSellCostMeanBuyPricewithTax = netSellCostMeanBuyPricewithTax+-20;
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 06944782d54a4a and sellbillId = 11 and returnsellbillId = 
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2025-12-18 20:25:13";
UPDATE user SET loginip = "127.0.0.1", lastactivetime = "2025-12-18 23:55:13", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2025-12-18 23:55:13', '1', 'addsellBill', '127.0.0.1', '', 'DESKTOP','https://localhost/erp19/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=247
UPDATE user SET loginip = "" WHERE lastactivetime < "2025-12-18 20:25:28";
UPDATE user SET loginip = "127.0.0.1", lastactivetime = "2025-12-18 23:55:28", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2025-12-18 23:55:28', '1', 'bill', '127.0.0.1', '', 'DESKTOP','https://localhost/erp19/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=248
UPDATE user SET loginip = "" WHERE lastactivetime < "2025-12-18 20:25:50";
UPDATE user SET loginip = "127.0.0.1", lastactivetime = "2025-12-18 23:55:50", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('expensesController.php', '2025-12-18 23:55:50', '1', '', '127.0.0.1', '', 'DESKTOP','https://localhost/erp19/controllers/expensesController.php'); -- id=249
UPDATE user SET loginip = "" WHERE lastactivetime < "2025-12-18 20:26:07";
UPDATE user SET loginip = "127.0.0.1", lastactivetime = "2025-12-18 23:56:07", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierController.php', '2025-12-18 23:56:07', '1', '', '127.0.0.1', '', 'DESKTOP','https://localhost/erp19/controllers/supplierController.php'); -- id=250
UPDATE user SET loginip = "" WHERE lastactivetime < "2025-12-18 20:26:19";
UPDATE user SET loginip = "127.0.0.1", lastactivetime = "2025-12-18 23:56:19", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2025-12-18 23:56:19', '1', 'addsellBill', '127.0.0.1', '', 'DESKTOP','https://localhost/erp19/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=251
UPDATE user SET loginip = "" WHERE lastactivetime < "2025-12-18 20:26:24";
UPDATE user SET loginip = "127.0.0.1", lastactivetime = "2025-12-18 23:56:24", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2025-12-18 23:56:24', '1', 'addsellBill', '127.0.0.1', '', 'DESKTOP','https://localhost/erp19/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=252
UPDATE user SET loginip = "" WHERE lastactivetime < "2025-12-18 20:26:30";
UPDATE user SET loginip = "127.0.0.1", lastactivetime = "2025-12-18 23:56:30", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2025-12-18 23:56:30', '1', 'addsellBill', '127.0.0.1', '', 'DESKTOP','https://localhost/erp19/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=253
UPDATE user SET loginip = "" WHERE userid = 1;
