find script to duplicate devis

find script to duplicate devis

hello everyone ! 

I work in a company that sells subscriptions and I need to project monthly turnover.
To do this I had the idea to create quotes "package" to renew every quarter. I added an optin in the quote template. Now I have to create a function to duplicate this quote every quarter automatically. does anyone already have a script? thank you very much