Forums / Setup & design / VAT operations
Daniela Moreno
Tuesday 22 February 2005 10:44:16 am
Exponential calculates VAT types with this formula: Price + (Price*VAT) + (Price*VAT)*VAT + ... + I need to change this operation, where can i change it?or how can i do it?
txs
Łukasz Serwatka
Wednesday 02 March 2005 12:46:46 am
Hi Daniela,
You can use
{$node.object.data_map.price.content.price}
and
{$node.object.data_map.price.content.vat_percent}
and mathematics operators to count the price for product class.
http://ez.no/ez_publish/documentation/reference/template_operators/mathematics
To display all attributes ezprice datatype you can use
{$node.object.data_map.price.content|attribute(show)}
Personal website -> http://serwatka.net Blog (about eZ Publish) -> http://serwatka.net/blog
Wednesday 02 March 2005 11:44:23 am
oh goodness, im so confusedwhere do i do this?
see, the situation is that its not calculating the price incl vat right, lets say for example, i have a $100 product excluding VAT, and my VAT is 15%, but when it displays the price including VAT, it shows me $117.65 instead of displaying $115.00. Ive been trying to find the template or file where the operations are, i found this operation: "$incVATPrice = $this->Price * ( $vatPercent + 100 ) / 100;" on /var/www/html/jarweb/kernel/classes/datatypes/ezprice/ezprice.php. I tried to change the operation because that one is wrong, but it didnt work; maybe im not changing the right file?
Help, please. I really need to solve this, im working on a deadline.Thanx a lot for your help!
Paul Forsyth
Wednesday 02 March 2005 2:07:51 pm
Theres another instance in kernel/classes/ezorderitem.php which has the same calculation. Maybe this is the one you are after?
paul
Monday 07 March 2005 11:16:23 am
yeah, well i changed the operation, and its not working, maybe if i try order.php?
Monday 07 March 2005 11:43:00 am
solved it! thank u soooo much!
Monday 07 March 2005 11:45:58 am
cool, what was it in the end?
Thursday 17 March 2005 10:41:35 am
the operation was all messed up in ezorder.php :S
:)