Support

Home Forums Event Espresso Premium Problem with face value vs. non-taxed prices

Problem with face value vs. non-taxed prices

Posted: January 26, 2015 at 5:20 am

Viewing 5 reply threads


Renate Brokelmann

January 26, 2015 at 5:20 am

Hi,

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?

Regards
Renate


Josh

  • Support Staff

January 26, 2015 at 9:43 am

Hi Renate,

Can you give us an example of a price that has 6 decimal places that you need to input?


Renate Brokelmann

January 26, 2015 at 10:22 am

e.g. taxed price 195 (incl. 19% tax)
>>> base price: 163.865546 (excl. 19% tax)


Josh

  • Support Staff

January 27, 2015 at 11:02 am

Hi Renate,

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">&euro;<?php echo number_format_i18n($tax_amount, 2); ?></td>


Renate Brokelmann

January 28, 2015 at 1:47 am

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.


Josh

  • Support Staff

January 28, 2015 at 6:53 am

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.

Event Espresso