WordPress.org

Ready to get started?Download WordPress

Forums

WP eCommerce
[Plugin: WP e-Commerce] tax issue (4 posts)

  1. jnz31
    Member
    Posted 2 years ago #

    yo

    i set up a store completly running, finding out, that the taxes get calculated completly wrong..?

    example:
    item price (including tax)
    20.00 €

    tax 19%
    3.00 €

    THAT IS WRONG.

    tax 19% is
    3.19 €

    even if i would add the 19% tax on the item price its not 3.00 €, but 3.80 €

    example 2:
    item price (including tax)
    27.00 €

    tax 19%
    4.00 €

    THATS WRONG.
    tax is 4.31 €

    looks like the decimals get cut, or so?

    ...?

    http://wordpress.org/extend/plugins/wp-e-commerce/

  2. jnz31
    Member
    Posted 2 years ago #

    i now checked the database, for any tax item i could find
    there are tables, but they count zero.

    table name
    "wpec_taxes_total" & "wpec_taxes_rate" in wpsc_purchase_logs
    both have value 0.00 on all orders, even if there should be some 19% calculation happening, i guess..?

  3. jnz31
    Member
    Posted 2 years ago #

    so
    i investigated a little bit more and found some more friction.

    during checkout the tax gets calcualted on the total amount, means inclusive of shipping.
    when done checked out, the tax shows up with only the product-tax.
    and in the backend the tax shows up with no decimals. (i know have a third value, 1.31€ and it shows up as 1.00€)

    i for my self would say:
    let the shop owner decide, if the tax should be calculated with or without shipping costs.
    and please, oh please fix this decimal shit.
    dunno where you need to pay your taxes and if these guys dont care, but in germany this has to be rock solid, or the storeowner has to pay for all the wrong calculated shit.
    right now you cant use this over here without hacking yourself throught this stuff.

  4. jnz31
    Member
    Posted 2 years ago #

    and i finally found the error:

    in purchaselogs.class.php on line 348 it goes
    return (int)$purchlogitem->purchitem->tax_charged;

    that is wrong, cause (int) makes the value 1.31 to 1.
    so the line should go
    return $purchlogitem->purchitem->tax_charged;

    but its still an issue, that the tax sometimes gets calculated with / without shipping.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic