[TYPO3-commerce] calculating the article sum price

Jeroen Visser jeroen at roquin.nl
Tue Apr 1 11:35:51 CEST 2008


Hi,
I found on http://bugs.typo3.org/view.php?id=6889&nbn=6 a similar problem. Only by setting "plugin.tx_commerce_pi2.priceFromNet = 1" did not work.
The function setTaxCalculationMethod() seems not to be reached although it is called from pi2 class init() function.
For now I have set "var $pricefromnet = 1;" in the class which does the trick. When someone knows why the function call fails to reach "basic_basket" class
I would like to here it. Thank's for now.

Regards,
Jeroen

> Hi All,
> In the webshop that's running it seems that round off is not done as 
> expected.
> For example: a article that costs 1.42 inc. Tax and 1.19 ex. Tax on the 
> website I show the 1.19
> 
> The following happens when changing the amount in the basket:
> 
> € 1,19    1x    € 1,19
> € 1,19    2x    € 2,38
> € 1,19    3x    € 3,57
> € 1,19    4x    € 4,77 (should be 4,76)
> € 1,19    5x    € 5,96 (should be 5,95)
> € 1,19    7x    € 8,35 (should be 8,33)
> € 1,19    10x    € 11,93 (should be 11,90)
> € 1,19    20x    € 23,86 (should be 23,80)
> 
> The article settings are:
> BTW: 19,00
> Net: 1,19
> Gross: 1,42
> 
> I have tested in class.tx_commerce_basic_basket.php adding ,2 to the 
> functions round() which resulted in the list above. Without round(,2) the
> list looks like:
> € 1,19    2x    € 2,38
> € 1,19    3x    € 3,58
> € 1,19    20x    € 23,87
> 
> Does anyone else has the same problem? Thank's in advance
> 
> Kind regards,
> Jeroen
> 
> 


-- 
Met vriendelijke groet,

Jeroen Visser
ROQUIN E-Solutions

Snelliusstraat 6
6533 NV Nijmegen
t:  +31(0)24 675 24 05
f:  +31(0)24 675 24 07
e:  jeroen at roquin.nl
w:  www.roquin.nl


More information about the TYPO3-project-commerce mailing list