We have written you a lot about trying to get Provincial taxes to display and have finally come up with a custom function to manage it, with some success, but one major issue.
What we’ve done is:
1. Used the Description field in the Ticket and the Tax section to assign a Province code to each
2. Set all applicable tickets to taxable (collects both taxes)
3. Use our function to remove the tax code that does not apply
This works great for having Ontario only tax OR Alberta only tax. Where this falls apart is that we are unable to update the taxes for partial amounts if the user chooses BOTH an Ontario and an Alberta event.
The current result is:
Ontario – $1
Alberta – $1
Subtotal – $2
Ontario 13% – $0.26
Alberta 5% – $0.10
Total $2.36
We can already loop through the taxes but our efforts to subtract one from the other are failing because – though we can remove a tax line – we just cannot seem to update the variables to a new value.
The result should be:
Ontario – $1
Alberta – $1
Subtotal – $2
Ontario 13% – $0.13
Alberta 5% – $0.05
Total $2.18
What filter do we have to add to manually reset the tax LIN_total to 0.13 and 0.05 as we loop through?
I’m not aware of a filter that will allow for resetting LIN_total like that. What you could do is open a Feature Request issue on GitHub and provide as many details as possible (including code examples) for the developers and they can give you feedback. An issue on GitHub will be helpful in this case because it may result in a Pull Request.
Viewing 1 reply thread
The support post ‘Modifying Tax Values’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.