TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv

TYPO3 Mailingliste: nicht fragen - lesen!

TYPO3 Mailingliste: nicht fragen - lesen!_RR_1-->
Zurück   TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv > TYPO3-Mailinglists: ENGLISH > typo3-project-tt-products@lists.netfielders.de

Registrieren Hilfe Benutzerliste Kalender Suchen Heutige Beiträge Alle Foren als gelesen markieren
  #1  
Alt 15.12.2006, 19:55
Ryan Hayle
Gast
 
Beiträge: n/a
Standard [TYPO3-shop] Tax calculation error (rounding problem?)

I'm having trouble with the tax calculations in the shop. I've set
plugin.tt_products.TAXpercentage = 6.00, however, take the following
example:

Product P1 costs 1.20, P2 is 1.60.

123*P1 + 456*P2 = 877.20
877.20*.06 = 52.632

The shop shows tax to be 54.21!

I'm not sure where the extra 1.578 went! This is mostly noticeable on a
large scale, but I did notice this:

If I only have 2 P2 (3.20), the calculated tax is 0.20 when it really
should be 0.192. It is rounded up instead of down. Is this the expected
behaviour? Is the tax calculation impacted by using different article
prices? My prices are entered without tax included, and I have no tax
on shipping or payment methods.

Any thoughts on this?

Thanks,
Ryan
_______________________________________________
TYPO3-project-tt-products mailing list
TYPO3-project-tt-products (AT) lists...netfielders.de
http://lists.netfielders.de/cgi-bin/...ct-tt-products
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #2  
Alt 21.12.2006, 12:20
Franz Holzinger
Gast
 
Beiträge: n/a
Standard Re: [TYPO3-shop] Tax calculation error (rounding problem?)

Hello Ryan,

> I'm having trouble with the tax calculations in the shop. I've set
> plugin.tt_products.TAXpercentage = 6.00, however, take the following
> example:
>
> Product P1 costs 1.20, P2 is 1.60.
>
> 123*P1 + 456*P2 = 877.20
> 877.20*.06 = 52.632
>
> The shop shows tax to be 54.21!
>
> I'm not sure where the extra 1.578 went!


Your calculation is wrong.
The tax must be calculated and rounded for one product and not on the
total end sum.

P1: 1.20 * 0.06 = 0.072 ~ 0.07
P2: 1.60 * 0.06 = 0.096 ~ 0.10

The tax calculation must not change if you order 1 product or 100.

123*P1 = 123 * 0.07 = 8.61
465*P2 = 465 * 0.10 = 45.60

total tax: 54.21

> If I only have 2 P2 (3.20), the calculated tax is 0.20 when it really
> should be 0.192. It is rounded up instead of down. Is this the expected
> behaviour?

P2: 1.60 * 0.06 = 0.096 ~ 0.10
This must be rounded up.

2 products have 0.20 tax. There must not be any tax reduction by
rounding if you order more than one product.

- Franz


_______________________________________________
TYPO3-project-tt-products mailing list
TYPO3-project-tt-products (AT) lists...netfielders.de
http://lists.netfielders.de/cgi-bin/...ct-tt-products
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #3  
Alt 21.12.2006, 19:09
Ryan Hayle
Gast
 
Beiträge: n/a
Standard Re: [TYPO3-shop] Tax calculation error (rounding problem?)

On Thu, 21 Dec 2006 05:20, Franz Holzinger wrote:
> Your calculation is wrong.
> The tax must be calculated and rounded for one product and not on the
> total end sum.


Why not? Shouldn't the tax be based on the total amount spent, not the
price per product? I don't know the legal rules involved. Is this
perhaps a difference between European and American calculations? I
think what you are saying makes sense if the tax is already included in
the quoted price, but not if you are quoting the actual price and adding
tax on additionally. Is that why? I really hate the American system,
but I do have to write for it. You know the Americans don't want the
"evil" government to steal even one cent and give it to those "lazy"
homeless people!

Thanks again,
Ryan
_______________________________________________
TYPO3-project-tt-products mailing list
TYPO3-project-tt-products (AT) lists...netfielders.de
http://lists.netfielders.de/cgi-bin/...ct-tt-products
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #4  
Alt 06.10.2007, 19:28
Franz Holzinger
Gast
 
Beiträge: n/a
Standard Re: [TYPO3-shop] Tax calculation error (rounding problem?)

Hello,

> On Thu, 21 Dec 2006 05:20, Franz Holzinger wrote:
>> Your calculation is wrong.
>> The tax must be calculated and rounded for one product and not on the
>> total end sum.

>
> Why not? Shouldn't the tax be based on the total amount spent, not the
> price per product? I don't know the legal rules involved. Is this
> perhaps a difference between European and American calculations? I
> think what you are saying makes sense if the tax is already included in
> the quoted price, but not if you are quoting the actual price and adding
> tax on additionally.


This has been changed now to your proposal.

Use TAXmode=1 for your calculation of all sums without taxes and without
any roundings. The tax will be added at the end sum. Then it will be
rounded for the output. This will be the default behaviour and you
should use this mode also for Germany. I have now uploaded a new
tt_products 2.5.1 which contains this. This is the last upload of 2.5.1.
The improved tt_products 2.5.2 will follow soon.

Use TAXmode=2 to do the former way. The tax will be added for each
product and rounded to 2 digits after the comma. Then the products
prices are calculated together.

- Franz

_______________________________________________
TYPO3-project-tt-products mailing list
TYPO3-project-tt-products (AT) lists...netfielders.de
http://lists.netfielders.de/cgi-bin/...ct-tt-products
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
 

Lesezeichen

Themen-Optionen
Ansicht Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an


Ähnliche Themen

Thema Autor Forum Antworten Letzter Beitrag
[TYPO3-shop] fatal error Johnny Peck typo3-project-tt-products@lists.netfielders.de 4 12.12.2006 20:22
Re: [TYPO3-german] jm_gallery error - Server Problem? FehlendesPEAR Modul? Cyrill Helg typo3-german@lists.netfielders.de 3 08.12.2006 15:26
[TYPO3-german] jm_gallery error - Server Problem? Cyrill Helg typo3-german@lists.netfielders.de 6 06.12.2006 20:16
Re: [TYPO3-shop] Error in handlescript payment_dibs.php typo3-project-tt-products@lists.netfielders.de 2 06.12.2006 00:36
Re: [TYPO3-shop] [Typo3-shop] LISTOFFERS: own template Alexander typo3-project-tt-products@lists.netfielders.de 0 03.12.2006 12:40


Alle Zeitangaben in WEZ +1. Es ist jetzt 01:24 Uhr.


Powered by vBulletin® Version 3.7.4 (Deutsch)
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Template-Modifikationen durch TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77