artaweb Posted April 5, 2022 Share Posted April 5, 2022 Hello, We've recently enabled TAX in our system as per regulation that was applied in our country. We have added 9%, everything seems to be working as expected however all unpaid invoices are still untaxed. Is there a way to add the tax amount of 9% to all existing unpaid invoices? I'd appreciate your insight on this. 0 Quote Link to comment Share on other sites More sharing options...
artaweb Posted April 5, 2022 Author Share Posted April 5, 2022 If anyone needs the solution, run this mysql query: UPDATE tblinvoices SET taxrate=9,tax=subtotal*0.09,total=subtotal+tax-credit WHERE status='Unpaid' AND tax=0; 1 Quote Link to comment Share on other sites More sharing options...
Bidi Posted January 1, 2023 Share Posted January 1, 2023 On 4/6/2022 at 12:49 AM, artaweb said: If anyone needs the solution, run this mysql query: UPDATE tblinvoices SET taxrate=9,tax=subtotal*0.09,total=subtotal+tax-credit WHERE status='Unpaid' AND tax=0; You saved me, thank you! 0 Quote Link to comment Share on other sites More sharing options...
Newton Posted September 20 Share Posted September 20 Be careful, if you have business client in Europe and do this for VAT, it will supersede the VAT exempt status of those clients (meaning the query will add the taxes on ALL invoices). 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.