Yes, but its a great workaround, dont you think?
And we (Europien people ), that need Pro-Forma invoices to work as they should, this can fix everithing, dont you think?
My opinion, its better, for now work like I have said, and later on, wen you (Cody, and Tyson and ofcourse Paul ), had time, implement a better solution
I have seen the blesta code, and you can simple add a new "key" in database that will store the latest generated pro forma invoice, or better yet, store in a new fileld on invoices to us be able to search by final invoice and old pro-forma number, and this way it will only need also one or two lines of code to fix permanent, and it will not need to mess with "inv_proforma_start"
But you have also implementa rule to check if the next generated number is greater then the new key, if an admin tries to change the "inv_proforma_start".
Im stiking with my solution, an I will also add a new field on invoices table to also store in a final invoice, the old pro-forma number to us to track invoices if the client only remember the pro-forma number