از دیتابیس میتونید تغییر بدید.
مثلا با این کوئری میتوان لیست فاکتورهای دامین ها رو در آورد :
کد:
SELECT v.id,i.id FROM `tblinvoiceitems` i join tblinvoices v on i.invoiceid=v.id where v.status="Unpaid" and i.description like '%ساله%' and i.description not like '%.ir%'
و بعد که id ها رو در آوردیم به یه ماکرو در emeditor یا replace میشه به این query ها تبدیلشون کرد و اجرا کرد. مثلا در این دستور ما 5000 تومان به قیمت دامین ها اضافه میکنیم :
کد:
update tblinvoiceitems set amount=amount+5000 where id="5311";update tblinvoices set subtotal=subtotal+5000,total=total+5000 where id="26450";
update tblinvoiceitems set amount=amount+5000 where id="5308";update tblinvoices set subtotal=subtotal+5000,total=total+5000 where id="26436";
update tblinvoiceitems set amount=amount+5000 where id="5330";update tblinvoices set subtotal=subtotal+5000,total=total+5000 where id="26548";
update tblinvoiceitems set amount=amount+5000 where id="5369";update tblinvoices set subtotal=subtotal+5000,total=total+5000 where id="26765";
update tblinvoiceitems set amount=amount+5000 where id="5370";update tblinvoices set subtotal=subtotal+5000,total=total+5000 where id="26765";