we sell tickets which have rounded prices, e.g. € 195. This means that I have to be able to enter a base price for the ticket that has up to 6 decimals places. But in Event Espresso the base prices are rounded, therefore the result differs, it’s e.g. either 194.99 or 195.01. How can I solve this?
I ran this by the developers and what we’d like to do is build out an extension that can be used to modify the way ticket prices are entered. So instead of inputing a base price + a tax amount, you’d enter a tax inclusive amount (like 195.00) and the tax amount. Then EE would automatically calculate out a base price.
This is an idea at this point, but in the meantime, will it work for you to input the tax inclusive amount for the ticket price? Then where you need to list out the tax amount, like in the invoice template, you could add a little PHP to calculate and display the tax amount as a line item?
Something like this could be used in an invoice or receipt template to display the tax amount as a line item:
<?php // calculate the 19% tax amount from the tax inclusive price
$tax_inclusive_price = $line_item->total();
$pre_tax_price = $tax_inclusive_price * .840336133;
$tax_amount = $tax_inclusive_price - $pre_tax_price;
?>
<?php // now display the tax amount in a table cell in the template ?>
<td class="item_r">€<?php echo number_format_i18n($tax_amount, 2); ?></td>
Thanks. Such a plugin would be very comfortable, especially for Europeans ;-). I think most if not all of the EU countries only have one or two different sales taxes / VATs, Germany has two (7% and 19% depending on the product/service) as opposed to the US, where every state has different sales taxes.
For most of our price categories the 2 decimals are enough, so for now we’ll work with Event Espresso as is. But thanks for the tip on changing the PHP, we’ll take it into consideration.
You’re welcome Renata, and thank you for the feedback.
Viewing 5 reply threads
The support post ‘Problem with face value vs. non-taxed prices’ 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.