Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • fontanka16 24 posts 73 karma points
    Apr 25, 2012 @ 09:25
    fontanka16
    0

    Shipping Fee is not properly calculated

    Hi

    I use dynamic shipping, and somehow the shipping fee with VAT gets tangled up. This is my orders shipping property:

     

    1. Shipping{DictionaryItemName:, Fee:68.9, FeeFormatted:68,90 kr, FeeFormattedNoSymbol:68,90, FeeVAT:16.25,…}
      1. DictionaryItemName""
      2. Fee68.9
      3. FeeFormatted"68,90 kr"
      4. FeeFormattedNoSymbol"68,90"
      5. FeeVAT16.25
      6. FeeVATFormatted"16,25 kr"
      7. FeeVATFormattedNoSymbol"16,25"
      8. FeeWithoutVAT65
      9. FeeWithoutVATFormatted"65,00 kr"
      10. FeeWithoutVATFormattedNoSymbol"65,00"
      11. Id2
      12. MediaIdnull
      13. Name"Posten"

     

    As you can see is the FeeVAT is 25% of the FeeWithoutVAT, but those 16,25 is never added to the Fee. Instead 8,90 is added from somewhere.

    To calculate the shipping i just call  order.ShippingFeeWithoutVAT = CalculateShipping(order, pageCount);

    Am i missing something here?

     

  • fontanka16 24 posts 73 karma points
    Apr 25, 2012 @ 10:29
    fontanka16
    0

    I mean 3.90, not 8,90

  • Anders Burla 2560 posts 8256 karma points
    Apr 25, 2012 @ 22:19
    Anders Burla
    0

    Hi Theodor

    First thing to do it to have the setting in Tea Commerce general setting - "Prices in DB incl. VAT" NOT checked. Always calc and have prices without VAT in the system/DB. Much more easy to understand and to debug. Try this and of course change your codes to handle this and then check if its still a problem. Some times its just ones head that cant handle the calculations of VAT :)

    If its still a problem we will of course have to look more into it.

    Kind regards
    Anders

  • fontanka16 24 posts 73 karma points
    Apr 25, 2012 @ 22:59
    fontanka16
    0

    Ok, thanks. I'll have a look at it tomorrow. 

  • Anders Burla 2560 posts 8256 karma points
    Apr 25, 2012 @ 23:16
    Anders Burla
    0

    Be sure to check the country specific VAT at the VAT group as well. Maybe a value here that overrides the one you would expect it to use. Or check if a specific VAT group is selected for the shipping method and its currency.

    Kind regards
    Anders

  • fontanka16 24 posts 73 karma points
    Apr 30, 2012 @ 10:27
    fontanka16
    0

    Ok, i had to take a step back and review the settings and the dynamic price calculation. It turned out to be a chain of things, but now it is starting to look good. 

    Thank you for the help and quick response!

  • Anders Burla 2560 posts 8256 karma points
    Apr 30, 2012 @ 10:44
    Anders Burla
    0

    Hi Theodor

    Great you found the problem and was able to start fixing it.

    Kind regards
    Anders

  • Streety 358 posts 568 karma points
    May 03, 2012 @ 11:35
    Streety
    0

    I had the same issue and it caused rather a panic.

     

    Transpires that 0 rate VAT was applied to the shipping method.

     

    It did do someting strange though. The processed order from PAYPAL didn't apply VAT to the shipping and teacommerce  did but handled it by putting a negative amount amount against the Payment Collumn of -60p.

     

    How odd.

Please Sign in or register to post replies

Write your reply to:

Draft