Support

Home Forums Event Espresso Premium Event Espresso Tax Miscalculation?

Event Espresso Tax Miscalculation?

Posted: July 4, 2016 at 7:25 am

Viewing 6 reply threads


Jonathan Young

July 4, 2016 at 7:25 am

Hi,

Recently we had a 3rd party developer put together a bit of custom code for our Event Espresso website that modified the promotions plugin to include an option to make a discount “Primary Attendee Exclusive”, in that it applied a 25% discount to additional attendees but not the primary registrant. This works fine, however, we’ve found that the tax is not calculated correctly, please find the description of the issue from our developer below as well as as screenshot to illustrate the issue:

“The problem is with Event Espresso it calculates the tax based on total amount. Even if I use the normal promotions plugin it makes the same calculations.Also, whenever I try to change the taxes and add a discount to it Event Espresso code would override it.
The code written in the Event Espresso core plugin only calculates taxes based on total rather than the sub-total.”

Calculation Bug

Can anyone help at all with this?

Thanks


Josh

  • Support Staff

July 5, 2016 at 12:35 pm

Hi Jonathan,

It sounds like you need to change the Event Espresso > Promotions Settings > Promotions Affect Taxes setting.


Jonathan Young

July 6, 2016 at 5:51 am

Hi Josh,

I’m afraid this didn’t help even with the tax calculated at the end, please see the image below as an example:

EE Calculation bug 2

As I’m sure you’re aware 20% of £350 is £70 not £60, is this miscalculating somehow?

Thanks


Jonathan Young

July 6, 2016 at 5:53 am

Apologies for the broken link it should in fact be this:

EE Calculation Bug


Josh

  • Support Staff

July 6, 2016 at 7:33 am

It looks like the Primary Attendee exclusive amount isn’t getting included when the VAT is calculated. Do you see how the first two line items have asterisks (which means they’ll be included in the tax calculation) and the Primary Attendee exclusive item doesn’t have an asterisk?

Your developer should be able to make that a taxable item and then things will calculate correctly.


Jonathan Young

July 6, 2016 at 9:33 am

OK thanks Josh, I’ll get in touch with them again. For their benefit are you able to give a quick run down on how you would make this a taxable item?


Josh

  • Support Staff

July 6, 2016 at 9:38 am

The EE_Line_Item class has a set_is_taxable() method.

https://github.com/eventespresso/event-espresso-core/blob/master/core/db_classes/EE_Line_Item.class.php#L452

Viewing 6 reply threads

The support post ‘Event Espresso Tax Miscalculation?’ 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.

Event Espresso