Remitur Posted August 20, 2017 Share Posted August 20, 2017 Hello. Any easy and elegant way to get last generated invoice ID? The one I'm guessing (create a fake invoice, get its ID, decrement by one and so you get the previous last ID number) is not so elegant... ) 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted August 20, 2017 Share Posted August 20, 2017 this will get you the last invoice ID in database table: SELECT `id` FROM `tblinvoices` ORDER BY `id` DESC LIMIT 0,1; 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.